title: ASP.Net MVC 5 get attribute routing values
body: <p>I switch from the old attribute routing library to the bundled asp.net MVC 5 routing. But now my <code>lang</code> route value is <code>null</code> in the <code>Application_AcquireRequestState</code></p>
  
  <pre><code>// rootcontroller.cs       
  [HttpGet]
  [Route("")]
  [Route("{lang}")]
  // old attribute routing worked:
  // [GET("/{lang}")]
  public ActionResult Index(string lang =null)
  {
      return View();
  }
  
  // global.asax
  protected void Application_AcquireRequestState(object sender, EventArgs e)
  {
      var handler = Context.Handler as MvcHandler;
  
      if (handler == null)
         return;
      var routeData = handler.RequestContext.RouteData;
  
      var lang = routeData.Values["lang"];   // null instead for example 'de'
      // ... set current culture
  }
  </code></pre>