title: Redirect in custom action filter
body: <p>I am creating custom filter in asp.net <code>MVC 5</code> and I am trying to redirect to a specific controller in the method <code>On Action Executing</code>  I have tried <code>Redirect To Action</code> and its not work any suggestion?
  i am using this filter in web api controller
  here is my code :</p>
  
  <pre><code>public override void OnActionExecuting(HttpActionContext actionContext)
  {
      Uri MyUrl = actionContext.Request.RequestUri;
      var host = MyUrl.Host;
  
      if (host == "localhost")
      {
         // redirect should be here
      }
  }
  </code></pre>