title: ASP.NET-MVC . How to get the controller name from an url?
body: <p>How can I get the controller name of a relative Url, using the routes I have defined in Global.asax?</p>
  
  <p>Example:</p>
  
  <p>if I have a route defiend like this: </p>
  
  <pre><code>routes.MapRoute(
                  "Default",                                              // Route name
                  "{language}/{controller}/{action}/{id}",                 // URL with parameters
                  new { controller = "Home", action = "Index", id = "", language = "en" }
  </code></pre>
  
  <p>from the string "~/en/products/list" I want to have products (the controller name). Is there any existing method that already does this?</p>