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

            var item = mng.GetDocType(id);

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

            return(Json(new
            {
                result = res,
                msg = "Тип удален!"
            }));
        }