Route mit zwei optionalen Parametern in MVC3 funktioniert nicht

In meiner Anwendung werden folgende Arten von URLs verwendet.

localhost / admin / userdetail / id

localhost / admin / userdetail / id / true

localhost / admin / userdetail / id / true / success

Hier ist mein Admin Controller

bool inSaveAction, Stringstatus sind optional

    [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" });
    }

Der folgende Fall funktioniert nicht

  @Html.ActionLink("DisplayName", "UserDetail", new { id = Model.Id })

In Global.asax

 routes.MapRoute("UserDetail",
            "UserDetail/{id}",
            new
            {
                controller = "Admin",
                action = "UserDetail",
                id = UrlParameter.Optional
            }
         );

ich folgtehttp://haacked.com/archive/2011/02/20/routing-regression-with-two-consecutive-optional-url-parameters.aspx

Wie kann ich inSaveAction & status als optionalen Parameter für meine UserDetail-Aktion festlegen?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage