title: how can i hide ID in URL with asp.net MVC4
body: <p>My URL</p>
  
  <blockquote>
    <p><a href="http://www.domain.com/Products/" rel="nofollow">http://www.domain.com/Products/</a>{Alias}-{ID}</p>
  </blockquote>
  
  <p>and my route</p>
  
  <pre><code>routes.MapRoute(
                 name: "ProductDetail",
                 url: "Products/{Alias}-{detailId}",
                 defaults: new { controller = "Products", action = "ProductDetail", id = UrlParameter.Optional }
              );
  </code></pre>
  
  <p>In controller</p>
  
  <pre><code>public ActionResult ProductDetail(int? detailId)
          {
              var pro = db.Products.Find(detailId);
              if (pro == null)
              {
                  return RedirectToAction("Index", "NotFound");
              }
              return View(pro);
          }
  </code></pre>
  
  <p>Now, I want to hide ID in my URL like</p>
  
  <blockquote>
    <p><a href="http://www.domain.com/Products/" rel="nofollow">http://www.domain.com/Products/</a>{Alias}</p>
  </blockquote>
  
  <p>How can i do that</p>