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); }
public void DeleteDocument(m.Document d) { DataContext.sp_DeleteDocument(d.ID); }