title: Change url asp.net mvc 5
body: <pre><code>routes.MapRoute(
              name: "MyRoute",
              url: "{Product}/{name}-{id}",
              defaults: new { controller = "Home", action = "Product", name = UrlParameter.Optional , id = UrlParameter.Optional }
          );
  </code></pre>
  
  <p>my routemap and i want my url in product action be like = <a href="http://localhost:13804/Wares/Product/name-id" rel="nofollow noreferrer">http://localhost:13804/Wares/Product/name-id</a></p>
  
  <p>but now is like = 
  <a href="http://localhost:13804/Wares/Product/4?name=name" rel="nofollow noreferrer">http://localhost:13804/Wares/Product/4?name=name</a></p>