Routing is one of the most important concepts in the ASP.NET MVC application as it takes care of incoming requests and maps them to the appropriate controller's actions.
We briefly discussed routing in Chapter 2, Controllers. In this chapter, we are going to discuss routing along with several options available for customizing it in ASP.NET Core.
By the end of this chapter, you will be able to:
- Use the MapRoute method to configure routing
- Work with different types of routing with examples—convention and attribute-based
- Use HTTP verbs in attribute-based routing