title: Cancel execution of an ActionFilter within an action api
body: <p>Is it possible to cancel the execution of an <code>ActionFiler</code> from inside an action in case a certain condition is met? For instance:</p>
  
  <pre><code>public LoadAttribute: Attribute, IActionFilter{ 
  
        public void OnActionExecuted(ActionExecutedContext context)
        {
              if (context.HttpContext.Request.Method.Equals("post", StringComparison.OrdinalIgnoreCase) &amp;&amp; !context.Canceled)
              {
                  Do Something;
              }
          }
  
        public void OnActionExecuting(ActionExecutingContext context)
          {
              if (context.HttpContext.Request.Method.Equals("get", StringComparison.OrdinalIgnoreCase))
              {
                  Do Something; 
              }
          }
  }
  </code></pre>
  
  <p>since the <code>ActionExecutedContext</code> has property named "Canceled", can I cancel the execution of the <code>ActionFilter</code> as described in the following code? </p>
  
  <pre><code>[Load]
  [HttpPost]
  public IActionFilter Add(SomeType someType){
  
      if(ModelState.IsValid) {
          Cancel Load ActionFilter 
          Redirect to Index;
      } 
      return View(someType)
  }
  </code></pre>