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"); }