title: Shorten URL in MVC to action parameter
body: <p>I'm trying to shorten a URL from:<code>http://localhost:50830/Controller/Action/{parameter}</code><br>
  To: <code>http://localhost:50830/{parameter}</code></p>
  
  <p>So the second URL has to do the same thing as the first URL.<br>
  I already tried this in the <code>RouteConfig.cs</code>:</p>
  
  <pre><code>routes.MapRoute
  (
  name: "Parameter route",
  url: "{parameter}",
  defaults: new { controller = "controllerName",
                  action = "Actionname",
                  parameter = UrlParameter.Optional  });
  </code></pre>
  
  <p>But then when I type this URL form <code>http://localhost:50830/{parameter}</code> into the browser, it says <code>The resource cannot be found</code>.</p>