public ActionResult Templates_remove(int id)
        {
            var res = false;
            var mng = new ContractsManager();

            var item = mng.GetDocTypeTemplate(id);

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

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