Beispiel #1
0
        public void SaveDocumentContent(string id, string content, bool cate)
        {
            DocumentFile.Save(id, content);
            var item = Management.Data.Categories.FirstOrDefault(d => d.ID == id);

            if (item != null)
            {
                item.HasBody = true;
                Management.Save();
            }
        }
Beispiel #2
0
 public void RemoveDocument(string id)
 {
     Management.Data.RemoveDocument(id);
     Management.Save();
     DocumentFile.Delete(id);
 }
Beispiel #3
0
 public object GetDocumentContent(string id)
 {
     return(DocumentFile.Load(id));
 }