示例#1
0
        public m.Document SaveDocument(m.Document d)
        {
            var id = DataContext.sp_SaveDocument(d.ID, d.CustomerID, d.DocumentFolderID, d.DocumentFileName, d.DocumentType, d.FileType, d.FileTimestamp, d.UploadDate, d.ExpirationDate, d.Comments);

            if (id != 0)
            {
                d.ID = id;
            }
            return(d);
        }
示例#2
0
 public void DeleteDocument(m.Document d)
 {
     DataContext.sp_DeleteDocument(d.ID);
 }