예제 #1
0
        public ActionResult deleteAccount(int id)
        {
            if (!isLogin()) return RedirectToAction("login", "auth");

            Provider db = new Provider();
            try
            {
                db.deleteAccountTagByAccount(id);
                db.deleteAccount(id);
            }
            catch (Exception e)
            {
                return Content("fail"+e.Message);
            }
            return Content("ok");
        }