In the previous chapter, we discussed that all web applications receive requests from the server and produce a response that is delivered back to the end user. This chapter covers the role of controllers in ASP.NET MVC applications and details the procedure of creating a controller and action methods.Â
By the end of this chapter, you will be able to:
- Explain the role of the controller in ASP.NET MVC applications
- Work with the routing engine
- Install the ASP.NET Core NuGet packages in your application
- Create your first controller and action methods
- Add a view and make the changes that allow your controller to use that view
- Add a model and pass that model data to your view