public async Task <IActionResult> ChangePassword(ChangePasswordModel model) { if (model.IsNotValid()) { model.SetInputModelValues(); return(View(model)); } var request = new PasswordChangeRequest(CurrentUser.Id, model.OldPassword, model.NewPassword); var response = await OrganizationService.ChangePassword(request); if (response.Status.IsNotSuccess) { model.MapMessages(response); return(View(model)); } CurrentUser.IsActionSucceed = true; return(Redirect("/User/ChangePasswordDone")); }