public static DocInfo FromDocData(DocData doc) { return new DocInfo { Id = doc.Id, Name = doc.Name, Content = doc.Content, Author = doc.Author, UploadTime = doc.UploadTime, ViewCount = doc.ViewCount, CanView = doc.CanView, DocCategoryId = doc.DocCategoryId.ToString() }; }
public void UpdataDoc(DocData doc) { this.Repository.UpdataDoc(doc); }
public void DeleteDoc(DocData doc) { this.Repository.DeleteDoc(doc); }
public void AddDoc(DocData doc) { this.Repository.AddDoc(doc); }