public ActionResult ChangePassword(ChangePasswordModel model) { try { ViewBag.Title = "Change Password"; model.ChangePassword(); ShowSuccessMessage("Password has been updated successfully"); } catch (Exception ex) { ShowErrorMessage(ex.Message); } return View(model); }
public ActionResult ChangePassword() { var model = new ChangePasswordModel(); return View(model); }