title: Use GUID as parameter in one controller?
body: <p>My goal is that I still want to use the default asp.net mvc <code>id</code> but I want to use Guid in one controller like this</p>
  
  <pre><code>http://example.com/MyController/Index/387ecbbf-90e0-4b72-8768-52c583fc715b
  </code></pre>
  
  <p>This is my route</p>
  
  <pre><code>routes.MapRoute(
      name: "Default",
      url: "{controller}/{action}/{id}",
      defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
  );
  </code></pre>
  
  <p>MyController right now</p>
  
  <pre><code>public ActionResult Index(Guid guid)
  {
  return View();
  }
  </code></pre>
  
  <p>Gives me the error</p>
  
  <blockquote>
    <p>The parameters dictionary contains a null entry for parameter 'guid'
    of non-nullable type 'System.Guid' for method
    'System.Web.Mvc.ActionResult Index(System.Guid)'</p>
  </blockquote>
  
  <p>I guess it's because I have ID in routes? How can I use GUID as parameters in one controller but <code>id</code> in the rest of the application (as default)?</p>