public ActionResult ResetPasswordConfirmation(string token, string id) { //if (WebSecurity.ResetPassword(model.Token, model.NewPassword)) //{ // return RedirectToAction("PasswordResetSuccess"); //} ModelServices modelServices = new ModelServices(); try { if (modelServices.IsResetTokenValid(token, id)) { ResetPasswordConfirmModel data = new ResetPasswordConfirmModel() { Token = token }; return View(data); } } catch (Exception ex) { Logging log = new Logging(); log.LogException(ex); return View("GeneralError"); } return RedirectToAction("PasswordResetFailure"); }