コード例 #1
0
        public JsonResult DeleteAccount()
        {
            var response = new AccountManagementEntity().DeleteAccount(Session["UID"].ToString());

            try
            {
                if (response.Response.IsDeleted)
                {
                    Session.Clear();
                }
            }
            catch { }

            return(Json(response, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        public JsonResult SetAccountPassword(string Password)
        {
            var response = new AccountManagementEntity().SetAccountPassword(Session["UID"].ToString(), Password);

            return(Json(response, JsonRequestBehavior.AllowGet));
        }