Action Filter You can apply filters either to individual action methods or to all the action methods on a given controller
Action Filter Method Method When Called OnActionExecuting () Before the action method runs OnActionExecuted () After the action method runs OnResultExecuting () Before the ActionResult isexecuted OnResultExecuted () After the ActionResult is executed