Chapter 7. Understanding Model Binders and Action Filters

This chapter is devoted to the topic of model binders and action filters. First, we tackle the subject of model binders. You learn how to use a model binder to instantiate an object from a browser request.

For example, we already used the default model binder several times in this book. Whenever we use a class as a parameter for a controller action—such as a Product class—we are using the default model binder.

In some situations, you want to create a custom model binder. When you create a custom model binder, you get to decide how a new object is instantiated out of the ether.

In this chapter, you ...

Get ASP.NET MVC Framework Unleashed 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.