Summary

In this chapter, we looked at some of the important aspects of action methods and their role in the controller and the wider MVC framework application. I showed you how we can issue next-step instructions by returning ActionResult objects, how to pass data from an action method to a view, how to enrich views using child actions, and how to deal with exceptions that arise in an action method. I also showed you how to use HTTP method selector attributes. These are most often used to separate action methods to deal with GET and POST requests to simplify form processing, a topic we will examine in more depth in the following chapter.

Get Applied ASP.NET 4 in Context 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.