title: How to make a custom route in ASP MVC
body: <p>I'm trying to do something like this.</p>
  
  <p><code>MyUrl.com/ComicBooks/{NameOfAComicBook}</code></p>
  
  <p>I messed around with RouteConfig.cs but I'm completely new at this, so I'm having trouble.  <code>NameOfAComicBook</code> is a mandatory parameter.</p>
  
  <pre><code>public class RouteConfig
  {
      public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
  
          routes.MapMvcAttributeRoutes();
  
  
          routes.MapRoute("ComicBookRoute",
                              "{controller}/ComicBooks/{PermaLinkName}",
                              new { controller = "Home", action = "ShowComicBook" }
                              );
  
          routes.MapRoute(
              name: "Default",
              url: "{controller}/{action}/{id}",
              defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
          );
  
      }
  }
  </code></pre>
  
  <p>HomeController.cs</p>
  
  <pre><code>public ActionResult ShowComicBook(string PermaLinkName)
  {
  
  
      // i have a breakpoint here that I can't hit
  
  
      return View();
  }
  </code></pre>