title: Show "ID" word in url in MVC
body: <pre><code>&lt;a href="@Url.Action("UpdateCase", "Receptionist", new { id = @Model[SrNo].Patient_ID })" class="btn btn-danger"&gt;Edit&lt;/a&gt;
  </code></pre>
  
  <p>In a href, I've pass id as parameter. so when I redirected to action I have following url  </p>
  
  <blockquote>
    <p><a href="http://localhost:17888/Receptionist/UpdateCase/12" rel="nofollow noreferrer">http://localhost:17888/Receptionist/UpdateCase/12</a></p>
  </blockquote>
  
  <p>But I want id word visible in url.</p>
  
  <blockquote>
    <p><a href="http://localhost:17888/Receptionist/UpdateCase?id=12" rel="nofollow noreferrer">http://localhost:17888/Receptionist/UpdateCase?id=12</a></p>
  </blockquote>
  
  <p>RouteConfig</p>
  
  <pre><code>routes.MapRoute(
                  name: "Default",
                  url: "{controller}/{action}/{id}",
                  defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
              );
  </code></pre>
  
  <p>If I change parameter name rather than id, it is working. only id is not visible in url</p>
  
  <p>UpdateCase Action:  </p>
  
  <pre><code>[Authorize]
  [HttpGet]
  public ActionResult UpdateCase(Int64 id)
  {
  
  }
  </code></pre>