public ActionResult ResetPassword(ResetPasswordModel model) { if (ModelState.IsValid) { loginService.ChangePassword(model.Email, model.Password); ViewBag.result = "1"; } else { ViewBag.result = "0"; } return View(model); }
public ActionResult ResetPassword(string email, string rt) { ResetPasswordModel model = new ResetPasswordModel(); model.ReturnToken = rt; model.Email = encriptDecript.Decrypt(email); return View(model); }