How can I get route values from inside my OnActionExecuting filter method.
I had the following two suggestions but I am still confused:
- Access your
ControllerContextin the method and that gives you access toRouteValuessofilterContext.Controller.RouteValues - Access
filterContext.Controller.RouteValues
I have for example the method:
public ActionResult Delete(string city, string street) {
//enter code here
}
If I want to get the value of city and street then how can I do this. Sorry if it seems like a basic question but I am not sure how to get access to the above.
Here it is,