public JsonResult DeleteAccount() { var response = new AccountManagementEntity().DeleteAccount(Session["UID"].ToString()); try { if (response.Response.IsDeleted) { Session.Clear(); } } catch { } return(Json(response, JsonRequestBehavior.AllowGet)); }
public JsonResult SetAccountPassword(string Password) { var response = new AccountManagementEntity().SetAccountPassword(Session["UID"].ToString(), Password); return(Json(response, JsonRequestBehavior.AllowGet)); }