In a before filter action, can I get the action that will be executed after the before开发者_StackOverflow社区 filter?
You can always access the RouteData collection(using the filter context) to check what is the action parameter.
If you are using
IActionFilter.OnActionExecuting(ActionExecutingContext filterContext)
{
string actionName = filterContext.ActionDescriptor.ActionName;
}
then filterContext.ActionDescriptor.ActionName will give you the action name
精彩评论