예제 #1
0
        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;
        }
예제 #2
0
        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);
        }