title: ActionFilter not firing after setting result in controller.OnActionExecuting
body: <p>I have a global action filter that is setting the MasterPage of all ViewResults during the OnActionExecuting event.</p>
  
  <p>In a number of my controllers (where each controller represents a feature of the application) I need to check to see if the feature is enabled and if not, return a different View.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>    protected override void OnActionExecuting(ActionExecutingContext filterContext) {
          if (!settings.Enabled)
          {
              filterContext.Result = View("NotFound");
          }
  
          base.OnActionExecuting(filterContext);
      }
  </code></pre>
  
  <p>The problem is that when setting the result like this, my ActionFilter's OnActionExecuted method does not fire, meaning I do not get the correct MasterPage applied.</p>
  
  <p>I would like to understand why this happens. One remedy is to move my ActionFilter logic into OnResultExecuting (this does fire), but I am still confused as to why OnActionExecuted does not.</p>
  
  <p>Many thanks</p>
  
  <p>Ben</p>