public DataTable SearchByPolicyId(String policyId) { using (var dmsService = new DMSService()) { return dmsService.GetUWDocumentsByObject(new UWDocument { RowLimit = 0, IsDetailed = true, PolicyID = policyId }); } }
public Guid SaveQuoteSheetToDMS(QuoteSheet quoteSheet, byte[] reportBytes, Submission submission) { var fileId = Guid.Empty.ToString(); // TODO: Exception handling using (var dmsService = new DMSService()) { fileId = dmsService.FNUploadDocument(quoteSheet.Title + ".pdf", quoteSheet.Title, reportBytes, quoteSheet.ObjectStore, quoteSheet.ObjectStore); dmsService.FNUpdateDocumentProperties(fileId, quoteSheet.ObjectStore, quoteSheet.ObjectStore, this.SetFileNetProperties(quoteSheet, submission)); } return new Guid(fileId); }