Enhancing the Application

We've reached the point where we have something that functions. We can create new registrations, and they are stored in our dummy repository. Along the way, we have used the ViewBag and strongly typed views to pass data from the controller to the view, we have used helper methods to conveniently generate HTML for use in views, and we have read from and written to the repositories. In the following sections, we'll add some additional functions and features.

Using Model Binding

One of my favorite MVC features is model binding. It's a neat trick that makes it easier to process requests. When I added the action method to handle form posts, I defined a parameter for each of the input field values that I was interested in ...

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.