I want to route REST service url in the following way:
/User/Rest/ -> UserRestController.Index()
/User/Rest/Get -> UserRestController.Get()
/User/ -> UserController.Index()
/User/Get -> UserController.Get()
So basically I'm making a hardcoded exception for Rest in the url.
I'm not very familiar with MVC routing. So what would be a good way to achieve this?
Wherever you register your routes, commonly in global.ascx
In your controller