public ActionResult DocTypeTemplateEdit(doc_docTypeTemplates item) { var mng = new DocsManager(); mng.SaveDocTypeTemplate(item); return(Json(new { result = true })); }
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)); }