Пример #1
0
        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");
        }