List of Listings
Chapter 2. Hello MVC world
Listing 2.1. The default HomeController
Listing 2.2. Registering routes
Listing 2.3. The DbContext used for interacting with the database
Listing 2.4. The GuestbookController with a Create action
Listing 2.5. The contents of the Create view
Listing 2.6. Processing the form data using a controller action
Listing 2.7. Adding the Index action
Chapter 3. View fundamentals
Listing 3.1. The Show controller action
Listing 3.2. Using ViewData information to hide a link
Listing 3.3. Skeleton definition of WebViewPage<T>
Listing 3.4. Passing a collection of guestbook entries to the view
Get ASP.NET MVC 4 in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.