Route Collection and Route Table
TheRouteTable
is a class that stores the URL routes for your application.
ARouteCollection
provides a collection of route information to be used when mapping a URI to a controller action.
TheRouteTable
contains a property calledRoutes
that will return aRouteCollection
. TheRouteTable
uses aRouteCollection
in order to store all the URL routing information it needs to accurately direct URI's to the correct controller action.
In your global.asax you will register the routes that will map to various controller actions by specifying the following: