Working with Action Methods

  • Adam Freeman


In this chapter, you’ll turn your attention to action methods—the critical part of a controller that allows us to respond to a request. I’ll show you how to get the most from action methods, starting with the different kinds of object an action method can return and the effect they have on the MVC framework. I’ll also show you how to pass data from an action method to a view, how to disambiguate action methods with the same name, and how to deal with unhandled exceptions that arise in action methods.


Action Method Index Method Child Action Error Handler View Model 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Adam Freeman 2011

Authors and Affiliations

  • Adam Freeman

There are no affiliations available

Personalised recommendations