title: How to get route name from Attribute routing in ASP MVC5
body: <p>Does anyone know how to get the route name from Attribute routing in a action filter?</p>
  
  <p>For example I have a controller and attribute route like this:</p>
  
  <pre><code>[HttpGet]
  [CustomActionAttribute]
  [Route("~/index", Name="IndexPage")]
  public async Task&lt;ActionResult&gt; Index()
  {
      //Controller logic
  }
  </code></pre>
  
  <p>Is it possible to get route name in the CustomActionAttribute?</p>
  
  <pre><code>public override void OnActionExecuting(ActionExecutingContext filterContext)
  {
      //Get the current route name here
  }
  </code></pre>