示例#1
0
        public ActionResult CancelAccount(LoginViewModel postForm)
        {
            string response;
            bool   change = settingsManager.CancelAccount(postForm, out response);

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