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, bool isDeclinature) { var fileId = Guid.Empty.ToString(); // TODO: Exception handling using (var dmsService = new DMSService()) { fileId = dmsService.FNUploadDocument(quoteSheet.Title + ".pdf", quoteSheet.Title, reportBytes, quoteSheet.DocumentClass, quoteSheet.ObjectStore); dmsService.FNUpdateDocumentProperties(fileId, quoteSheet.ObjectStore, quoteSheet.ObjectStore, this.SetFileNetProperties(quoteSheet, submission, isDeclinature)); } return(new Guid(fileId)); }