public ActionResult delete(int id) { if (!isLogin()) return RedirectToAction("login", "auth"); Provider db = new Provider(); try { db.deleteNote(id); } catch (Exception e) { return Content("fail" + e.Message); } return Content("ok"); }
public ActionResult delete(int id) { if (!isLogin()) return RedirectToAction("login", "auth"); Provider db = new Provider(); try { db.deleteNote(id); } catch (Exception e) { return Content("fail" + e.Message); } return Content("ok"); }