示例#1
0
        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);
        }
示例#2
0
 public ActionResult ChangePassword()
 {
     var model = new ChangePasswordModel();
     return View(model);
 }