public ActionResult ChangePassword(SettingPasswordViewModel postForm) { string response; bool change = settingsManager.ChangePassword(postForm, out response); if (change) { Session["updateMessage"] = response; return(RedirectToAction("Logout", "Account")); } else { Session["errorMessage"] = response; return(RedirectToAction("ChangePassword", "Settings")); } }