Adding a View4:03 with James Churchill
Returning content directly from a controller action method is not ideal. Instead, we should rely upon a view to provide the HTML content for the client. Let’s see how to return a view from an action method.
To follow along commiting your changes to this course, you'll need to fork the aspnet-comic-book-gallery repo. Then you can clone, commit, and push your changes to your fork like this:
git clone <your-fork> cd aspnet-comic-book-gallery git checkout tags/v3.1 -b adding-a-view
For a great introduction to HTML and CSS, don’t miss this Treehouse course.
For more information about the
Controller.View method, see this MSDN page.
You need to sign up for Treehouse in order to download course files.Sign up