public ActionResult Index(ChangePasswordInputModel model)
 {
     if (ModelState.IsValid)
     {
         try
         {
             this.userAccountService.ChangePassword(User.GetUserID(), model.OldPassword, model.NewPassword);
             return View("Success");
         }
         catch (ValidationException ex)
         {
             ModelState.AddModelError("", ex.Message);
         }
     }
     return View(model);
 }
 public ActionResult Index(ChangePasswordInputModel model)
 {
     if (ModelState.IsValid)
     {
         try
         {
             if (this.userAccountService.ChangePassword(User.Identity.Name, model.OldPassword, model.NewPassword))
             {
                 return View("Success");
             }
             else
             {
                 ModelState.AddModelError("", "Error changing password");
             }
         }
         catch (ValidationException ex)
         {
             ModelState.AddModelError("", ex.Message);
         }
     }
     return View(model);
 }