ASP.NET MVC Controller.OnActionExecuting Method. Called before the action method is invoked.
ASP.NET MVC Controller.OnActionExecuting
Method.
Called before the action method is invoked.
Remarks: If this method is overridden in a derived Controller
class, it will be called for every action method in the class. For more flexibility, derive a class from ActionFilterAttribute
and override this method in the derived ActionFilterAttribute
class.