Ejemplo n.º 1
0
        public ActionResult ChangeEmail(SettingEmailViewModel postForm)
        {
            string response;
            bool   change = settingsManager.ChangeEmail(postForm, out response);

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