Beispiel #1
0
        public ActionResult ChangeUsername(SettingUsernameViewModel postForm)
        {
            string response;
            bool   change = settingsManager.ChangeUsername(postForm, out response);

            if (change)
            {
                Session["updateMessage"] = response;
            }
            else
            {
                Session["errorMessage"] = response;
            }
            return(RedirectToAction("ChangeUsername", "Settings"));
        }