Exemple #1
0
        public ActionResult DocTypeTemplates_remove(int id)
        {
            var res = false;
            var mng = new DocsManager();

            var item = mng.GetDocTypeTemplate(id);

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

            return(Json(new
            {
                result = res,
                msg = "Шаблон удален!"
            }));
        }