protected override void OnActionExecuting(ActionExecutingContext filterContext)
and
protected override void OnActionExecuted(ActionExecutedContext filterContext)
These will override methods that are part of the System.Web.Mvc.Controller
class.
We override this class with a base controller which all our controllers inherit from. You could use either of these for what you are asking.