MVC Routing:-
Routing helps you to define a URL structure and map the URL with the controller.
For instance let’s say we want that when a user types “http://localhost/View/ViewCustomer/”, it goes to the “Customer” Controller and invokes theDisplayCustomer
action. This is defined by adding an entry in to theroutes
collection using themaproute
function. Below is the underlined code which shows how the URL structure and mapping with controller and action is defined.