Summary

In this chapter, we have seen how the MVC framework supports model binding to help us simplify our action methods. Model binding is an elegant feature that allows us to focus our efforts on working with model objects, without having to pay attention to how they are created from the request data.

I showed you how to customize the model binding process and how you can validate that the data received as part of the request will lead to a valid model object. Finally, I showed you the support for unobtrusive client-side validation, which allows you to perform simple validation on property values before the form is submitted for processing.

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.