コード例 #1
0
        public ActionResult DocTypeTemplateEdit(doc_docTypeTemplates item)
        {
            var mng = new DocsManager();

            mng.SaveDocTypeTemplate(item);
            return(Json(new { result = true }));
        }
コード例 #2
0
        public ActionResult CreateDocTypeTemplate(string name, int typeID, string path, int?ord)
        {
            var mng  = new DocsManager();
            var item = new doc_docTypeTemplates {
                id = 0, name = name, typeID = typeID, path = path, ord = ord
            };

            mng.SaveDocTypeTemplate(item);

            return(Json(new
            {
                result = item.id > 0,
                savedID = item.id,
            }, JsonRequestBehavior.AllowGet));
        }