title: How to hide action and controller from url : asp.net mvc
body: <p><strong>Introduction</strong></p>
  
  <p>I am working on demo application where users can register.Users table have "username" field.There is "detail" action in "home" controller accepting parameter of string "username".</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>public ActionResult Detail (string username)
  {
   return View();
  }
  </code></pre>
  
  <p>Then url will be </p>
  
  <blockquote>
    <p>www.example.com/home/Detail?username=someparam</p>
  </blockquote>
  
  <p><strong>Problem</strong></p>
  
  <p>Can i setup route like that ?</p>
  
  <blockquote>
    <p>www.example.com/someparam</p>
  </blockquote>
  
  <p>If its possible, then please let me know. Any kind of help or reference will be appreciated. </p>
  
  <p>Thanks for your time.</p>