CHAPTER 9
SportsStore: Completing the Cart
In this chapter, we continue to build out our SportsStore example app. In the previous chapter, we added the basic support for a shopping cart and now we are going to improve on and complete that functionality.
Using Model Binding
The MVC Framework uses a system called model binding to create C# objects from HTTP requests in order to pass them as parameter values to action methods. This is how MVC processes forms, for example. The framework looks at the parameters of the action method that has been targeted, and uses a model binder to get the values of the form input elements and convert them to the ...
Get Pro ASP.NET MVC 4, Fourth Edition 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.