Esempio n. 1
0
        public ActionResult Docs_remove(int id)
        {
            var res = false;
            var mng = new DocsManager();

            var item = mng.GetDoc(id);

            if (item != null)
            {
                mng.DeleteDoc(id);
                res = true;
            }

            return(Json(new
            {
                result = res,
                msg = "Документ удален!"
            }));
        }