private BackupObject GetBackupObject(Action<ExportImportProgressInfo> progressCallback) { var retVal = new BackupObject(); var progressInfo = new ExportImportProgressInfo(); var searchResponse = _quoteRequestService.Search(new QuoteRequestSearchCriteria { Count = int.MaxValue }); progressInfo.Description = String.Format("{0} RFQs loading", searchResponse.QuoteRequests.Count()); progressCallback(progressInfo); retVal.QuoteRequests = _quoteRequestService.GetByIds(searchResponse.QuoteRequests.Select(x => x.Id).ToArray()).ToList(); return retVal; }
private BackupObject GetBackupObject(Action <ExportImportProgressInfo> progressCallback) { var retVal = new BackupObject(); var progressInfo = new ExportImportProgressInfo(); var searchResponse = _quoteRequestService.Search(new QuoteRequestSearchCriteria { Count = int.MaxValue }); progressInfo.Description = String.Format("{0} RFQs loading", searchResponse.QuoteRequests.Count()); progressCallback(progressInfo); retVal.QuoteRequests = _quoteRequestService.GetByIds(searchResponse.QuoteRequests.Select(x => x.Id).ToArray()).ToList(); return(retVal); }