Controllers:-
It contains logic what we want to perform. It contains
methods , logics.
Urls are always mapped to controllers.
Basic Pic is given below for your understanding.
Routing:-
Routing tells the application which controller and which
method should be called first.
When an asp.net mvc application fired up, firstly its
goes to “Global.asax” file and with in
that in Application_Start method, routing is registered.
RouteConfig.RegisterRoutes(RouteTable.Routes) is use to register it, if we go to its definition we will find
internal structure of it.
In this we register which method, which
controller should be called first.
You can also check my video at this topic for
detail study.









No comments:
Post a Comment