public ActionResult ChangeUserPassword(long userId, ChangePasswordModel model) { ServiceLocator.AccountManagementService.ChangeUserPassword(userId, model.NewPassword); return RedirectToAction("ViewAllUserAccounts", "AdministratorPanel"); }
public ActionResult ChangePassword(ChangePasswordModel model) { ServiceLocator.AccountManagementService.ChangePassword((long)Session["LoggedUserId"], model.OldPassword, model.NewPassword); return RedirectToAction("Index", "UserAccountPanel"); }