Created
April 2, 2015 15:17
Action Filter IsChildAction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Class1 : IActionFilter | |
{ | |
public void OnActionExecuting(ActionExecutingContext filterContext) | |
{ | |
if(filterContext.IsChildAction) | |
{ | |
//Your Code Goes Here | |
} | |
} | |
public void OnActionExecuted(ActionExecutedContext filterContext) | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment