public ActionResult Logout() { FormsAuthentication.SignOut(); //_sessionStorage.AddValueWithKey(SessionStorage.LOGIN_MESSAGE, "Please login to view that page."); _sessionStorage.AddValueWithKey(SessionStorage.LOGIN_MESSAGE, "Войдите для просмотра страницы."); return(RedirectToAction("Login")); }
public ActionResult ChangePassword(SettingsViewModel model) { _userService.ChangePassword(model.UserId, model.PasswordModel.Password); _sessionStorage.AddValueWithKey(SessionStorage.SETTINGS_MESSAGE_KEY, "Your password has been changed."); return(RedirectToAction("Settings")); }