Пример #1
0
        public void Import()
        {
            var memoryStream = new MemoryStream(EcommerceInstallHelper.GetFileFromUrl(EcommerceInstallInfo.ProductsExcelUrl));
            var result       = _importExportManager.ImportProductsFromExcel(memoryStream, autoStartBatch: false);

            var batchRun = result.Batch.BatchRuns.First();

            _synchronousBatchRunExecution.Execute(batchRun);
        }
Пример #2
0
        public void Import(MediaModel model)
        {
            var memoryStream = new MemoryStream(EcommerceInstallHelper.GetFileFromUrl(EcommerceInstallInfo.CategoryExcelUrl));
            var result       = _importExportManager.ImportDocumentsFromExcel(memoryStream, false);

            var batchRun = result.Batch.BatchRuns.First();

            _synchronousBatchRunExecution.Execute(batchRun);

            SetFeaturedCategories(model);
        }