In an MVC application, what are the segments of the default route ?
Answer Posted / Abhishek Kumar Jain
The default route in an MVC application consists of four segments: Controller, Action, Id, and catchall. The first two segments represent the controller and action methods you want to invoke, while the third segment (Id) is optional and can be used for passing additional information.n```perlnroutes.MapRoute(n "Default", n "{controller}/{action}/{id}", n new { controller = "Home", action = "Index", id = "" })n``
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers