public IActionResult NewPassword(NewPassword newPassword) { if (ModelState.IsValid) { _userInformationService.UpdatePasswor(newPassword.UserName, newPassword.Password); TempData["Success"] = "Password change successfully"; return(View("Login")); } else { ViewBag.Error = "Bad request"; return(View("Index")); } }