title: Route with Two optional parameters in MVC3 not working
body: <p>I have a following types of url used in my Application.</p>
  
  <blockquote>
    <p><strong><em>localhost/admin/userdetail/id</em></strong></p>
    
    <p><strong><em>localhost/admin/userdetail/id/true</em></strong></p>
    
    <p><strong><em>localhost/admin/userdetail/id/true/success</em></strong></p>
  </blockquote>
  
  <p>Here is my Admin Controller</p>
  
  <blockquote>
    <p><strong>bool inSaveAction, string status are optional</strong></p>
  </blockquote>
  
  <pre><code>    [Authorize]
      public ActionResult UserDetail(string Id, bool inSaveAction, string status)
      {
      }
  
      [HttpPost, Authorize, ValidateAntiForgeryToken]
      public ActionResult SaveUserDetail(UserDetailViewModel viewModel)
      {
          User userToSave = new User();
          AdminService.UpdateUser(userToSave);
          //This is calling the above function as it sending all 3 params
          return RedirectToAction("UserDetail", new { Id = viewModel.Id, 
                             inSaveAction = true, status = "success" });
      }
  </code></pre>
  
  <blockquote>
    <p><strong><em>Below case is not working</em></strong></p>
  </blockquote>
  
  <pre><code>  @Html.ActionLink("DisplayName", "UserDetail", new { id = Model.Id })
  </code></pre>
  
  <p>In Global.asax</p>
  
  <pre><code> routes.MapRoute("UserDetail",
              "UserDetail/{id}",
              new
              {
                  controller = "Admin",
                  action = "UserDetail",
                  id = UrlParameter.Optional
              }
           );
  </code></pre>
  
  <p>I followed <a href="http://haacked.com/archive/2011/02/20/routing-regression-with-two-consecutive-optional-url-parameters.aspx" rel="noreferrer">http://haacked.com/archive/2011/02/20/routing-regression-with-two-consecutive-optional-url-parameters.aspx</a></p>
  
  <p><strong>How can i make inSaveAction &amp; status as optional parameter for my UserDetail action?</strong></p>