Creating the Controller
Now that we have created a simple domain model, we can create a controller. To add a controller to the project, right-click the Controllers
project folder, and select Add Controller from the pop-up menu. You'll see the Add Controller dialog, as shown in Figure 23-4.
Change the Controller Name setting to RegistrationController. The convention is to give controller meaningful names, and we are going to use this controller to allow users to register for competitions. Ensure that the ...
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.