How to find the name of the route that is used when used inside it in ControllerBase?
For example, I have a route like this:
routes.MapRoute("Search", "{controller}.mvc/{action}/{criterion}", new { controller = "", action = "", criterion = "" });
... and in my ControllerBase I need an Object.Property that contains the "Search" or the name of the route that ControllerBase currently uses, if not a search.
Thank.
-Jessy Houle
source
share