SportsStore: Completing the Cart

In this chapter, I continue to build out the SportsStore example app. In the previous chapter, I added the basic support for a shopping cart and now I am 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 the MVC framework processes forms, for example: it looks at the parameters of the action method that has been targeted and uses a model binder to get the form values sent by the browser and convert them to the type ...

Get Pro ASP.NET MVC 5, Fifth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.