Introduction The ASP.NET Routing system is primarily responsible for two operations:
It maps incoming HTTP requests to a route handler given a collection of routes. It generates URLs (links) from these routes. A typical route definition is a string that contains a URL template to match, such as:
"blog/{year}-{month}-{day}/{slug}"
With the URL template, the route definition can also contain default values and constraints for parts of the URL. This helps define exactly which URLs the route can match, for example:
routes.MapRoute( name: "Product", template: Go to the complete details ...