Routing bridges middleware and MVC framework by mapping incoming Http requests into controller action method. There are two different routing available in MVC.
Routes are evaluated in the order they are defined in the program. The more important routes should be defined first.
Following diagram explain the login flow of routing mechanism in Asp.Net core MVC.