title: Change route url in asp.net mvc
body: <p>I have Login Controller and Register ActionResult</p>
  
  <pre><code>   public ActionResult Register()
          {
              return View();
          }
  </code></pre>
  
  <p>If i post any data to Register actionresult url seems like below,</p>
  
  <pre><code>WebSiteName/Login/Register
  </code></pre>
  
  <p>I want to change route url as <strong>WebSiteName/Login/Reg=Id?</strong></p>
  
  <p>So i tried below however i could not change route url.</p>
  
  <pre><code>   routes.MapRoute(
           name: "something",
           url: "Login/Reg=Id?",
           defaults: new
           {
               controller = "Login",
               action = "Register",
               id = id = UrlParameter.Optional
           }
       );
  </code></pre>
  
  <p>So how can i change url in asp.net mvc ?</p>
  
  <p>Any help will be appreciated.</p>
  
  <p>Thanks.</p>