The ASP.NET MVC framework will call the OnActionExecuting method of your action filter before it calls the action method that is marked with your action filter attribute. Similarly, the framework will call the OnActionExecuted method after the action method has finished.