Beispiel #1
0
 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()
     };
 }
Beispiel #2
0
 public void UpdataDoc(DocData doc)
 {
     this.Repository.UpdataDoc(doc);
 }
Beispiel #3
0
 public void DeleteDoc(DocData doc)
 {
     this.Repository.DeleteDoc(doc);
 }
Beispiel #4
0
 public void AddDoc(DocData doc)
 {
     this.Repository.AddDoc(doc);
 }