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(); } }
public void RemoveDocument(string id) { Management.Data.RemoveDocument(id); Management.Save(); DocumentFile.Delete(id); }
public object GetDocumentContent(string id) { return(DocumentFile.Load(id)); }