Chapter 16. Extending the controller

 

This chapter covers
  • Understanding the controller extensibility points
  • Discovering the requirements for an action
  • Using action selectors
  • Creating custom action results
  • Reducing controller complexity with action results

 

You now know all the basics of ASP.NET MVC, and you understand all the parts necessary to build compelling web applications. Let’s go further. The ASP.NET MVC framework has a number of extensibility points built in, and this chapter focuses on those that can be used in controller classes. Not only does extending the controller provide flexibility, it also reduces complexity.

We’ll cover how the basic notion of a controller provides for extension. Then we’ll explore how to extend actions ...

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.