Example #1
0
 public ProductController(IProductService productService, 
     IProductTemplateService productTemplateService,
     ICategoryService categoryService, IManufacturerService manufacturerService,
     IWorkContext workContext, ILanguageService languageService, 
     ILocalizationService localizationService, ILocalizedEntityService localizedEntityService,
     ISpecificationAttributeService specificationAttributeService, IPictureService pictureService,
     ITaxCategoryService taxCategoryService, IProductTagService productTagService,
     ICopyProductService copyProductService, IPdfService pdfService,
     IExportManager exportManager, IImportManager importManager,
     ICustomerActivityService customerActivityService,
     IPermissionService permissionService, AdminAreaSettings adminAreaSettings)
 {
     this._productService = productService;
     this._productTemplateService = productTemplateService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._workContext = workContext;
     this._languageService = languageService;
     this._localizationService = localizationService;
     this._localizedEntityService = localizedEntityService;
     this._specificationAttributeService = specificationAttributeService;
     this._pictureService = pictureService;
     this._taxCategoryService = taxCategoryService;
     this._productTagService = productTagService;
     this._copyProductService = copyProductService;
     this._pdfService = pdfService;
     this._exportManager = exportManager;
     this._importManager = importManager;
     this._customerActivityService = customerActivityService;
     this._permissionService = permissionService;
     this._adminAreaSettings = adminAreaSettings;
 }
Example #2
0
 public CountryController(ICountryService countryService,
     IStateProvinceService stateProvinceService,
     ICityService cityService,
     IZipcodeService zipcodeService,
     ILocalizationService localizationService,
     IAddressService addressService,
     IPermissionService permissionService,
     ILocalizedEntityService localizedEntityService,
     ILanguageService languageService,
     IStoreService storeService,
     IStoreMappingService storeMappingService,
     IExportManager exportManager,
     IImportManager importManager)
 {
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._cityService = cityService;
     this._zipcodeService = zipcodeService;
     this._localizationService = localizationService;
     this._addressService = addressService;
     this._permissionService = permissionService;
     this._localizedEntityService = localizedEntityService;
     this._languageService = languageService;
     this._storeService = storeService;
     this._storeMappingService = storeMappingService;
     this._exportManager = exportManager;
     this._importManager = importManager;
 }
 public ImportStudyProgrammeViewModel(IImportManager<StudyProgramme> importManager)
 {
     importManager.ThrowIfNull("importManager");
     this.encodings = Encoding.GetEncodings().Select(e => e.GetEncoding()).OrderBy(e => e.EncodingName).ToList();
     this.importManager = importManager;
     this.findFileCommand = new RelayCommand(x => this.FindFile());
     this.parseFileCommand = new RelayCommand(x => this.ParseFile(), x => this.CanParse);
     this.saveCommand = new RelayCommand(x => this.Save(), x => true);
 }
 public SelectSellController(IProductService productService,
     IProductTemplateService productTemplateService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     ICustomerService customerService,
     IUrlRecordService urlRecordService,
     IWorkContext workContext,
     ILanguageService languageService,
     ILocalizationService localizationService,
     ILocalizedEntityService localizedEntityService,
     ISpecificationAttributeService specificationAttributeService,
     IPictureService pictureService,
     ITaxCategoryService taxCategoryService,
     IProductTagService productTagService,
     ICopyProductService copyProductService,
     IPdfService pdfService,
     IExportManager exportManager,
     IImportManager importManager,
     ICustomerActivityService customerActivityService,
     IPermissionService permissionService,
     IAclService aclService,
     IStoreService storeService,
     IOrderService orderService,
     IStoreMappingService storeMappingService,
     IVendorService vendorService,
     IShippingService shippingService,
     IShipmentService shipmentService,
     ICurrencyService currencyService,
     CurrencySettings currencySettings,
     IMeasureService measureService,
     MeasureSettings measureSettings,
     AdminAreaSettings adminAreaSettings,
     IDateTimeHelper dateTimeHelper,
     IDiscountService discountService,
     IProductAttributeService productAttributeService,
     IBackInStockSubscriptionService backInStockSubscriptionService,
     IShoppingCartService shoppingCartService,
     IProductAttributeFormatter productAttributeFormatter,
     IProductAttributeParser productAttributeParser,
     IDownloadService downloadService,
     IStoreContext storeContext,
     IRepository<StoreMapping> storeMapping)
 {
     _workContext = workContext;
     _productService = productService;
     _pictureService = pictureService;
     _localizationService = localizationService;
     _categoryService = categoryService;
     _manufacturerService = manufacturerService;
     _storeService = storeService;
     _shippingService = shippingService;
     _vendorService = vendorService;
     _storeMappingService = storeMappingService;
     _storeContext = storeContext;
     _storeMapping = storeMapping;
 }
Example #5
0
 public LanguageController(ILanguageService languageService, ILocalizationService localizationService,
     IExportManager exportManager, IImportManager importManager, IPermissionService permissionService,
     AdminAreaSettings adminAreaSettings)
 {
     this._localizationService = localizationService;
     this._languageService = languageService;
     this._exportManager = exportManager;
     this._importManager = importManager;
     this._permissionService = permissionService;
     this._adminAreaSettings = adminAreaSettings;
 }
 public ProductController(IProductService productService, 
     IProductTemplateService productTemplateService,
     ICategoryService categoryService, IManufacturerService manufacturerService,
     ICustomerService customerService,
     IUrlRecordService urlRecordService, IWorkContext workContext, ILanguageService languageService,
     ILocalizationService localizationService, ILocalizedEntityService localizedEntityService,
     ISpecificationAttributeService specificationAttributeService, IPictureService pictureService,
     ITaxCategoryService taxCategoryService, IProductTagService productTagService,
     ICopyProductService copyProductService, IPdfService pdfService,
     IExportManager exportManager, IImportManager importManager,
     ICustomerActivityService customerActivityService,
     IPermissionService permissionService, IAclService aclService,
     IStoreService storeService, IStoreMappingService storeMappingService,
     IVendorService vendorService,
     ICurrencyService currencyService, CurrencySettings currencySettings,
     IMeasureService measureService, MeasureSettings measureSettings,
     PdfSettings pdfSettings, AdminAreaSettings adminAreaSettings)
 {
     this._productService = productService;
     this._productTemplateService = productTemplateService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._customerService = customerService;
     this._urlRecordService = urlRecordService;
     this._workContext = workContext;
     this._languageService = languageService;
     this._localizationService = localizationService;
     this._localizedEntityService = localizedEntityService;
     this._specificationAttributeService = specificationAttributeService;
     this._pictureService = pictureService;
     this._taxCategoryService = taxCategoryService;
     this._productTagService = productTagService;
     this._copyProductService = copyProductService;
     this._pdfService = pdfService;
     this._exportManager = exportManager;
     this._importManager = importManager;
     this._customerActivityService = customerActivityService;
     this._permissionService = permissionService;
     this._aclService = aclService;
     this._storeService = storeService;
     this._storeMappingService = storeMappingService;
     this._vendorService = vendorService;
     this._currencyService = currencyService;
     this._currencySettings = currencySettings;
     this._measureService = measureService;
     this._measureSettings = measureSettings;
     this._pdfSettings = pdfSettings;
     this._adminAreaSettings = adminAreaSettings;
 }
		public NewsLetterSubscriptionController(INewsLetterSubscriptionService newsLetterSubscriptionService,
			IDateTimeHelper dateTimeHelper,
            ILocalizationService localizationService,
            IPermissionService permissionService,
            IStoreService storeService,
            IExportManager exportManager,
            IImportManager importManager)
		{
			this._newsLetterSubscriptionService = newsLetterSubscriptionService;
			this._dateTimeHelper = dateTimeHelper;
            this._localizationService = localizationService;
            this._permissionService = permissionService;
            this._storeService = storeService;
            this._exportManager = exportManager;
            this._importManager = importManager;
		}
 public ManufacturerController(ICategoryService categoryService, 
     IManufacturerService manufacturerService,
     IManufacturerTemplateService manufacturerTemplateService,
     IProductService productService,
     ICustomerService customerService, 
     IStoreService storeService,
     IStoreMappingService storeMappingService,
     IUrlRecordService urlRecordService, 
     IPictureService pictureService,
     ILanguageService languageService, 
     ILocalizationService localizationService,
     ILocalizedEntityService localizedEntityService, 
     IExportManager exportManager,
     IDiscountService discountService,
     ICustomerActivityService customerActivityService, 
     IVendorService vendorService,
     IAclService aclService,
     IPermissionService permissionService,
     CatalogSettings catalogSettings,
     IWorkContext workContext,
     IImportManager importManager, 
     ICacheManager cacheManager)
 {
     this._categoryService = categoryService;
     this._manufacturerTemplateService = manufacturerTemplateService;
     this._manufacturerService = manufacturerService;
     this._productService = productService;
     this._customerService = customerService;
     this._storeService = storeService;
     this._storeMappingService = storeMappingService;
     this._urlRecordService = urlRecordService;
     this._pictureService = pictureService;
     this._languageService = languageService;
     this._localizationService = localizationService;
     this._localizedEntityService = localizedEntityService;
     this._exportManager = exportManager;
     this._discountService = discountService;
     this._customerActivityService = customerActivityService;
     this._vendorService = vendorService;
     this._aclService = aclService;
     this._permissionService = permissionService;
     this._catalogSettings = catalogSettings;
     this._workContext = workContext;
     this._importManager = importManager;
     this._cacheManager = cacheManager;
 }
 public ExternalIntegrationController(IProductService productService,
                                      IProductTemplateService productTemplateService,
                                      ICategoryService categoryService, IManufacturerService manufacturerService,
                                      IWorkContext workContext, ILanguageService languageService,
                                      ILocalizationService localizationService, ILocalizedEntityService localizedEntityService,
                                      ISpecificationAttributeService specificationAttributeService, IPictureService pictureService,
                                      ITaxCategoryService taxCategoryService, IProductTagService productTagService,
                                      ICopyProductService copyProductService, IPdfService pdfService,
                                      IExportManager exportManager, IImportManager importManager,
                                      ICustomerActivityService customerActivityService,
                                      IPermissionService permissionService, AdminAreaSettings adminAreaSettings, ICurrencyService currencyService,
                                      CurrencySettings currencySettings, IMessageTemplateService messageTemplateService,
                                      INebimIntegrationService nebimIntegrationService, INebimIntegrationImportService nebimIntegrationImportService, IOrderService orderService)
 {
     this._productService                = productService;
     this._productTemplateService        = productTemplateService;
     this._categoryService               = categoryService;
     this._manufacturerService           = manufacturerService;
     this._workContext                   = workContext;
     this._languageService               = languageService;
     this._localizationService           = localizationService;
     this._localizedEntityService        = localizedEntityService;
     this._specificationAttributeService = specificationAttributeService;
     this._pictureService                = pictureService;
     this._taxCategoryService            = taxCategoryService;
     this._productTagService             = productTagService;
     this._copyProductService            = copyProductService;
     this._pdfService                    = pdfService;
     this._exportManager                 = exportManager;
     this._importManager                 = importManager;
     this._customerActivityService       = customerActivityService;
     this._permissionService             = permissionService;
     this._adminAreaSettings             = adminAreaSettings;
     this._currencyService               = currencyService;
     this._currencySettings              = currencySettings;
     this._messageTemplateService        = messageTemplateService;
     this._nebimIntegrationService       = nebimIntegrationService;
     this._nebimIntegrationImportService = nebimIntegrationImportService;
     this._orderService                  = orderService;
 }
Example #10
0
        private readonly IExportManager _exportManager; //NOP 3.826

        #endregion

        #region Constructors

        public DiscountController(IDiscountService discountService,
                                  ILocalizationService localizationService,
                                  ICurrencyService currencyService,
                                  ICategoryService categoryService,
                                  IProductService productService,
                                  IWebHelper webHelper,
                                  IDateTimeHelper dateTimeHelper,
                                  ICustomerActivityService customerActivityService,
                                  CurrencySettings currencySettings,
                                  IPermissionService permissionService,
                                  IWorkContext workContext,
                                  IManufacturerService manufacturerService,
                                  IStoreService storeService,
                                  IVendorService vendorService,
                                  IOrderService orderService,
                                  IPriceFormatter priceFormatter,
                                  ICacheManager cacheManager,
                                  IImportManager importManager, //NOP 3.826
                                  IExportManager exportManager) //NOP 3.826
        {
            this._discountService         = discountService;
            this._localizationService     = localizationService;
            this._currencyService         = currencyService;
            this._categoryService         = categoryService;
            this._productService          = productService;
            this._webHelper               = webHelper;
            this._dateTimeHelper          = dateTimeHelper;
            this._customerActivityService = customerActivityService;
            this._currencySettings        = currencySettings;
            this._permissionService       = permissionService;
            this._workContext             = workContext;
            this._manufacturerService     = manufacturerService;
            this._storeService            = storeService;
            this._vendorService           = vendorService;
            this._orderService            = orderService;
            this._priceFormatter          = priceFormatter;
            this._cacheManager            = cacheManager;
            this._importManager           = importManager; //NOP 3.826
            this._exportManager           = exportManager; //NOP 3.826
        }
Example #11
0
 public CategoryController(IAclService aclService,
                           ICategoryModelFactory categoryModelFactory,
                           ICategoryService categoryService,
                           ICustomerActivityService customerActivityService,
                           ICustomerService customerService,
                           IDiscountService discountService,
                           IExportManager exportManager,
                           IImportManager importManager,
                           ILocalizationService localizationService,
                           ILocalizedEntityService localizedEntityService,
                           INotificationService notificationService,
                           IPermissionService permissionService,
                           IPictureService pictureService,
                           IProductService productService,
                           IStaticCacheManager staticCacheManager,
                           IStoreMappingService storeMappingService,
                           IStoreService storeService,
                           IUrlRecordService urlRecordService,
                           IWorkContext workContext)
 {
     _aclService              = aclService;
     _categoryModelFactory    = categoryModelFactory;
     _categoryService         = categoryService;
     _customerActivityService = customerActivityService;
     _customerService         = customerService;
     _discountService         = discountService;
     _exportManager           = exportManager;
     _importManager           = importManager;
     _localizationService     = localizationService;
     _localizedEntityService  = localizedEntityService;
     _notificationService     = notificationService;
     _permissionService       = permissionService;
     _pictureService          = pictureService;
     _productService          = productService;
     _staticCacheManager      = staticCacheManager;
     _storeMappingService     = storeMappingService;
     _storeService            = storeService;
     _urlRecordService        = urlRecordService;
     _workContext             = workContext;
 }
Example #12
0
        public ImportsManagerViewModel(BusyIndicatorViewModel busyIndicator, IFileSystem fileSystem, IImportManager importManager)
        {
            _busyIndicator = busyIndicator;
            _importManager = importManager;
            Fs             = fileSystem;

            ReplayImportsCommand       = new RelayCommand(ReplayImports);
            BeginImportCommand         = new RelayCommand(BeginNewImport);
            BeginEditImportsCommand    = new AsyncCommand(BeginEditImport);
            CommitEditCommand          = new AsyncCommand(CommitEdit);
            CancelEditCommand          = new RelayCommand(CancelEdit);
            SelectFilesToImportCommand = new RelayCommand(SelectFilesToImport);
            DeleteImportsCommand       = new AsyncCommand(DeleteImports);
            MessengerInstance.Register <AccountViewModel>(this, OnAccountViewModelReceived);
            SelectedImports = new ObservableCollection <ImportCommandGridModel>();

            _ofd = new OpenFileDialog
            {
                Multiselect = true,
                Filter      = "csv files (*.csv)|*.csv|All Files (*.*)|*.*"
            };
        }
Example #13
0
 public CountryController(ICountryService countryService,
                          IStateProvinceService stateProvinceService,
                          ILocalizationService localizationService,
                          IAddressService addressService,
                          IPermissionService permissionService,
                          ILanguageService languageService,
                          IStoreService storeService,
                          IStoreMappingService storeMappingService,
                          IExportManager exportManager,
                          IImportManager importManager)
 {
     this._countryService       = countryService;
     this._stateProvinceService = stateProvinceService;
     this._localizationService  = localizationService;
     this._addressService       = addressService;
     this._permissionService    = permissionService;
     this._languageService      = languageService;
     this._storeService         = storeService;
     this._storeMappingService  = storeMappingService;
     this._exportManager        = exportManager;
     this._importManager        = importManager;
 }
 public CategoryController(ICategoryService categoryService, ICategoryTemplateService categoryTemplateService,
                           IProductService productService,
                           ICustomerService customerService,
                           IUrlRecordService urlRecordService,
                           IPictureService pictureService,
                           ILanguageService languageService,
                           ILocalizationService localizationService,
                           ILocalizedEntityService localizedEntityService,
                           IPermissionService permissionService,
                           IAclService aclService,
                           IStoreService storeService,
                           IStoreMappingService storeMappingService,
                           IExportManager exportManager,
                           ICustomerActivityService customerActivityService,
                           CatalogSettings catalogSettings,
                           IWorkContext workContext,
                           IImportManager importManager,
                           ICacheManager cacheManager)
 {
     this._categoryService         = categoryService;
     this._categoryTemplateService = categoryTemplateService;
     this._productService          = productService;
     this._customerService         = customerService;
     this._urlRecordService        = urlRecordService;
     this._pictureService          = pictureService;
     this._languageService         = languageService;
     this._localizationService     = localizationService;
     this._localizedEntityService  = localizedEntityService;
     this._permissionService       = permissionService;
     this._aclService              = aclService;
     this._storeService            = storeService;
     this._storeMappingService     = storeMappingService;
     this._exportManager           = exportManager;
     this._customerActivityService = customerActivityService;
     this._catalogSettings         = catalogSettings;
     this._workContext             = workContext;
     this._importManager           = importManager;
     this._cacheManager            = cacheManager;
 }
Example #15
0
 public CountryController(IAddressService addressService,
                          ICountryModelFactory countryModelFactory,
                          ICountryService countryService,
                          IUserActivityService userActivityService,
                          IExportManager exportManager,
                          IImportManager importManager,
                          ILocalizationService localizationService,
                          ILocalizedEntityService localizedEntityService,
                          IPermissionService permissionService,
                          IStateProvinceService stateProvinceService)
 {
     this._addressService         = addressService;
     this._countryModelFactory    = countryModelFactory;
     this._countryService         = countryService;
     this._userActivityService    = userActivityService;
     this._exportManager          = exportManager;
     this._importManager          = importManager;
     this._localizationService    = localizationService;
     this._localizedEntityService = localizedEntityService;
     this._permissionService      = permissionService;
     this._stateProvinceService   = stateProvinceService;
 }
 public ManufacturerController(IAclService aclService,
                               ICustomerActivityService customerActivityService,
                               ICustomerService customerService,
                               IDiscountService discountService,
                               IExportManager exportManager,
                               IImportManager importManager,
                               ILocalizationService localizationService,
                               ILocalizedEntityService localizedEntityService,
                               IManufacturerModelFactory manufacturerModelFactory,
                               IManufacturerService manufacturerService,
                               INotificationService notificationService,
                               IPermissionService permissionService,
                               IPictureService pictureService,
                               IProductService productService,
                               IStoreMappingService storeMappingService,
                               IStoreService storeService,
                               IUrlRecordService urlRecordService,
                               IWorkContext workContext)
 {
     this._aclService = aclService;
     this._customerActivityService  = customerActivityService;
     this._customerService          = customerService;
     this._discountService          = discountService;
     this._exportManager            = exportManager;
     this._importManager            = importManager;
     this._localizationService      = localizationService;
     this._localizedEntityService   = localizedEntityService;
     this._manufacturerModelFactory = manufacturerModelFactory;
     this._manufacturerService      = manufacturerService;
     this._notificationService      = notificationService;
     this._permissionService        = permissionService;
     this._pictureService           = pictureService;
     this._productService           = productService;
     this._storeMappingService      = storeMappingService;
     this._storeService             = storeService;
     this._urlRecordService         = urlRecordService;
     this._workContext = workContext;
 }
Example #17
0
 public CategoryController(
     ICategoryService categoryService,
     ICategoryViewModelService categoryViewModelService,
     ICustomerService customerService,
     ILanguageService languageService,
     ILocalizationService localizationService,
     IStoreService storeService,
     IExportManager exportManager,
     ICustomerActivityService customerActivityService,
     IWorkContext workContext,
     IImportManager importManager)
 {
     this._categoryService          = categoryService;
     this._categoryViewModelService = categoryViewModelService;
     this._customerService          = customerService;
     this._languageService          = languageService;
     this._localizationService      = localizationService;
     this._storeService             = storeService;
     this._exportManager            = exportManager;
     this._customerActivityService  = customerActivityService;
     this._workContext   = workContext;
     this._importManager = importManager;
 }
Example #18
0
        public static async Task <HttpResponseMessage> Run(
            [HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)] HttpRequestMessage req,
            [Inject] IImportManager importManager, [Inject] ILogger <IImportManager> logger)
        {
            logger.LogInformation("Azure Function ExecuteImport processed a request.");

            try
            {
                ImportResultsContainer irc = importManager.ImportAll();

                var response = req.CreateResponse(HttpStatusCode.OK, irc);

                return(response);
            }
            catch (System.Exception ex)
            {
                logger.LogError(ex, $"Error in Azure Function ExecuteImport : {ex.Message}");

                var response = req.CreateResponse(HttpStatusCode.InternalServerError, ex.Message);

                return(response);
            }
        }
Example #19
0
 public CategoryController(
     ICategoryService categoryService,
     ICategoryViewModelService categoryViewModelService,
     ICustomerService customerService,
     ILanguageService languageService,
     ITranslationService translationService,
     IStoreService storeService,
     IExportManager exportManager,
     IWorkContext workContext,
     IGroupService groupService,
     IImportManager importManager)
 {
     _categoryService          = categoryService;
     _categoryViewModelService = categoryViewModelService;
     _customerService          = customerService;
     _languageService          = languageService;
     _translationService       = translationService;
     _storeService             = storeService;
     _exportManager            = exportManager;
     _workContext   = workContext;
     _groupService  = groupService;
     _importManager = importManager;
 }
 public ManufacturerController(
     IManufacturerViewModelService manufacturerViewModelService,
     IManufacturerService manufacturerService,
     IWorkContext workContext,
     IStoreContext storeContext,
     ICustomerService customerService,
     IStoreService storeService,
     ILanguageService languageService,
     ILocalizationService localizationService,
     IExportManager exportManager,
     IImportManager importManager)
 {
     _manufacturerViewModelService = manufacturerViewModelService;
     _manufacturerService          = manufacturerService;
     _workContext         = workContext;
     _storeContext        = storeContext;
     _customerService     = customerService;
     _storeService        = storeService;
     _languageService     = languageService;
     _localizationService = localizationService;
     _exportManager       = exportManager;
     _importManager       = importManager;
 }
Example #21
0
 public PostController(IPostService postService,
                       ICategoryService categoryService,
                       ICustomerService customerService,
                       IUrlRecordService urlRecordService,
                       IWorkContext workContext,
                       ILanguageService languageService,
                       ILocalizationService localizationService,
                       ILocalizedEntityService localizedEntityService,
                       IPictureService pictureService,
                       IExportManager exportManager,
                       IImportManager importManager,
                       ICustomerActivityService customerActivityService,
                       IPermissionService permissionService,
                       IAclService aclService,
                       ICacheManager cacheManager,
                       IDateTimeHelper dateTimeHelper,
                       IPostTagService postTagService, IPostTemplateService postTemplateService)
 {
     _postService             = postService;
     _categoryService         = categoryService;
     _customerService         = customerService;
     _urlRecordService        = urlRecordService;
     _workContext             = workContext;
     _languageService         = languageService;
     _localizationService     = localizationService;
     _localizedEntityService  = localizedEntityService;
     _pictureService          = pictureService;
     _exportManager           = exportManager;
     _importManager           = importManager;
     _customerActivityService = customerActivityService;
     _permissionService       = permissionService;
     _aclService          = aclService;
     _cacheManager        = cacheManager;
     _dateTimeHelper      = dateTimeHelper;
     _postTagService      = postTagService;
     _postTemplateService = postTemplateService;
 }
Example #22
0
 public ConsolPaymentController(IAclService aclService,
                                ICategoryModelFactory categoryModelFactory,
                                ICategoryService categoryService,
                                ICustomerActivityService customerActivityService,
                                ICustomerService customerService,
                                IDiscountService discountService,
                                IExportManager exportManager,
                                IImportManager importManager,
                                ILocalizationService localizationService,
                                ILocalizedEntityService localizedEntityService,
                                IPermissionService permissionService,
                                IPictureService pictureService,
                                IProductService productService,
                                IStoreMappingService storeMappingService,
                                IStoreService storeService,
                                IUrlRecordService urlRecordService,
                                IWorkContext workContext)
 {
     this._aclService              = aclService;
     this._categoryModelFactory    = categoryModelFactory;
     this._categoryService         = categoryService;
     this._customerActivityService = customerActivityService;
     this._customerService         = customerService;
     this._discountService         = discountService;
     this._exportManager           = exportManager;
     this._importManager           = importManager;
     this._localizationService     = localizationService;
     this._localizedEntityService  = localizedEntityService;
     this._permissionService       = permissionService;
     this._pictureService          = pictureService;
     this._productService          = productService;
     this._storeMappingService     = storeMappingService;
     this._storeService            = storeService;
     this._urlRecordService        = urlRecordService;
     this._workContext             = workContext;
 }
Example #23
0
 /// <summary>
 /// Initialize Controller
 /// </summary>
 /// <param name="importManager"></param>
 public ImportController(IImportManager importManager)
 {
     _importManager = importManager;
 }
 public Update()
 {
     ImportManager = ServiceFactory.ImportManager;
     LinkManager   = ServiceFactory.LinkManager;
     UpdateManager = ServiceFactory.UpdateManager;
 }
Example #25
0
 public UpdateController(IUpdateManager updateManager, IImportManager importManager)
 {
     ImportManager = importManager;
     UpdateManager = updateManager;
 }
 public GroupDealsController(
     IProductService productService,
     IProductTemplateService productTemplateService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     ICustomerService customerService,
     IUrlRecordService urlRecordService,
     IWorkContext workContext,
     ILanguageService languageService,
     ILocalizationService localizationService,
     ILocalizedEntityService localizedEntityService,
     ISpecificationAttributeService specificationAttributeService,
     IPictureService pictureService,
     ITaxCategoryService taxCategoryService,
     IProductTagService productTagService,
     ICopyProductService copyProductService,
     IPdfService pdfService,
     IExportManager exportManager,
     IImportManager importManager,
     ICustomerActivityService customerActivityService,
     IPermissionService permissionService,
     IAclService aclService,
     IStoreService storeService,
     IOrderService orderService,
     IStoreMappingService storeMappingService,
     IVendorService vendorService,
     IShippingService shippingService,
     IShipmentService shipmentService,
     ICurrencyService currencyService,
     CurrencySettings currencySettings,
     IMeasureService measureService,
     MeasureSettings measureSettings,
     AdminAreaSettings adminAreaSettings,
     IDateTimeHelper dateTimeHelper,
     IDiscountService discountService,
     IProductAttributeService productAttributeService,
     IBackInStockSubscriptionService backInStockSubscriptionService,
     IShoppingCartService shoppingCartService,
     IProductAttributeFormatter productAttributeFormatter,
     IProductAttributeParser productAttributeParser,
     IDownloadService downloadService,
     IRepository<GroupDeal> groupDealRepo,
     IRepository<GroupdealPicture> groupdealPictureRepo,
     IGroupDealService groupdealService,
     IGenericAttributeService genericAttributeService)
     : base(productService,
     productTemplateService,
     categoryService,
     manufacturerService,
     customerService,
     urlRecordService,
     workContext,
     languageService,
     localizationService,
     localizedEntityService,
     specificationAttributeService,
     pictureService,
     taxCategoryService,
     productTagService,
     copyProductService,
     pdfService,
     exportManager,
     importManager,
     customerActivityService,
     permissionService,
     aclService,
     storeService,
     orderService,
     storeMappingService,
     vendorService,
     shippingService,
     shipmentService,
     currencyService,
     currencySettings,
     measureService,
     measureSettings,
     adminAreaSettings,
     dateTimeHelper,
     discountService,
     productAttributeService,
     backInStockSubscriptionService,
     shoppingCartService,
     productAttributeFormatter,
     productAttributeParser,
     downloadService,
     groupDealRepo,
     groupdealPictureRepo,
     groupdealService,
     genericAttributeService)
 { }
Example #27
0
 public ExpenseController(IExpenseService expenseService, IExpenseAccountService expenseAccountService, IExpenseCategoryService expenseCategoryService, IExpenseTagService expenseTagService, IImportManager importManager)
 {
     _expenseService         = expenseService;
     _expenseAccountService  = expenseAccountService;
     _expenseCategoryService = expenseCategoryService;
     _expenseTagService      = expenseTagService;
     _importManager          = importManager;
 }
Example #28
0
 public static ImportResult ImportProductsFromExcel(this IImportManager importManager, Stream stream)
 {
     return(importManager.ImportProductsFromExcel(stream, CancellationToken.None));
 }
 public ExportImportController(IExportManager exportManager, IImportManager importManager)
 {
     this._exportManager = exportManager;
     this._importManager = importManager;
 }
Example #30
0
 public static ImportResult ImportProductsFromExcel(this IImportManager importManager, Stream stream)
 {
     //Func<Task<ImportResult>> fn = () => importManager.ImportProductsFromExcelAsync(stream);
     //return fn.RunSync();
     return(AsyncRunner.RunSync(() => importManager.ImportProductsFromExcelAsync(stream)));
 }
        public async Task TestPerformImport()
        {
            IImportManager    importManager     = ServiceProvider.GetService <IImportManager>();
            CsvImportSettings csvImportSettings = ServiceProvider.GetService <CsvImportSettings>();

            if (importManager != null && csvImportSettings != null)
            {
                await importManager.CleanEnvironment();

                IList <ImportResult> results = await importManager.PerformImport();

                Assert.True(File.Exists(Path.Combine(csvImportSettings.LocalImportDirectory, csvImportSettings.FacZipFilename)));
                Assert.True(File.Exists(Path.Combine(csvImportSettings.LocalImportDirectory, csvImportSettings.AgencyImportFilename)));
                Assert.True(File.Exists(Path.Combine(csvImportSettings.LocalImportDirectory, csvImportSettings.CfdaImportFilename)));
                Assert.True(File.Exists(Path.Combine(csvImportSettings.LocalImportDirectory, csvImportSettings.CpaImportFilename)));
                Assert.True(File.Exists(Path.Combine(csvImportSettings.LocalImportDirectory, csvImportSettings.DunsImportFilename)));
                Assert.True(File.Exists(Path.Combine(csvImportSettings.LocalImportDirectory, csvImportSettings.EinsImportFilename)));
                Assert.True(File.Exists(Path.Combine(csvImportSettings.LocalImportDirectory, csvImportSettings.FindingsImportFilename)));
                Assert.True(File.Exists(Path.Combine(csvImportSettings.LocalImportDirectory, csvImportSettings.GeneralImportFilename)));
                Assert.True(File.Exists(Path.Combine(csvImportSettings.LocalImportDirectory, csvImportSettings.NotesImportFilename)));
                Assert.True(File.Exists(Path.Combine(csvImportSettings.LocalImportDirectory, csvImportSettings.PassthroughImportFilename)));
                Assert.True(File.Exists(Path.Combine(csvImportSettings.LocalImportDirectory, csvImportSettings.RevisionImportFilename)));
                Assert.True(File.Exists(Path.Combine(csvImportSettings.LocalImportDirectory, csvImportSettings.CapTextImportFilename)));
                Assert.True(File.Exists(Path.Combine(csvImportSettings.LocalImportDirectory, csvImportSettings.FindingsTextImportFilename)));

                //CFDA's

                ImportResult cfdaResult = results.FirstOrDefault(x => x.ImportArea == ImportResultType.Cfda);

                Assert.IsNotNull(cfdaResult);
                Assert.True(cfdaResult.Success);
                Assert.True(cfdaResult.RecordsImported > 0);
                Assert.True(await ServiceProvider.GetService <IBulkImportRepository <Cfda> >().CurrentRecords() ==
                            cfdaResult.RecordsImported);


                //General
                ImportResult generalResult = results.FirstOrDefault(x => x.ImportArea == ImportResultType.General);

                Assert.IsNotNull(generalResult);
                Assert.True(generalResult.Success);
                Assert.True(generalResult.RecordsImported > 0);
                Assert.True(await ServiceProvider.GetService <IBulkImportRepository <General> >().CurrentRecords() ==
                            generalResult.RecordsImported);

                //Agency
                ImportResult agencyResult =
                    results.FirstOrDefault
                        (x => x.ImportArea == ImportResultType.Agency);

                Assert.IsNotNull(agencyResult);
                Assert.True(agencyResult.Success);
                Assert.True(agencyResult.RecordsImported > 0);
                Assert.True(await ServiceProvider.GetService <IBulkImportRepository <Agency> >().CurrentRecords() ==
                            agencyResult.RecordsImported);


                //CapText
                ImportResult capTextResult =
                    results.FirstOrDefault
                        (x => x.ImportArea == ImportResultType.CapText);

                Assert.IsNotNull(capTextResult);
                Assert.True(capTextResult.Success);
                Assert.True(capTextResult.RecordsImported > 0);
                Assert.True(await ServiceProvider.GetService <IBulkImportRepository <CapText> >().CurrentRecords() ==
                            capTextResult.RecordsImported);

                //Cpa
                ImportResult cpaResult =
                    results.FirstOrDefault
                        (x => x.ImportArea == ImportResultType.Cpas);

                Assert.IsNotNull(cpaResult);
                Assert.True(cpaResult.Success);
                Assert.True(cpaResult.RecordsImported > 0);
                Assert.True(await ServiceProvider.GetService <IBulkImportRepository <Cpa> >().CurrentRecords() ==
                            cpaResult.RecordsImported);

                //Duns
                ImportResult dunResult =
                    results.FirstOrDefault
                        (x => x.ImportArea == ImportResultType.Duns);

                Assert.IsNotNull(dunResult);
                Assert.True(dunResult.Success);
                Assert.True(dunResult.RecordsImported > 0);
                Assert.True(await ServiceProvider.GetService <IBulkImportRepository <Dun> >().CurrentRecords() ==
                            dunResult.RecordsImported);

                //Ein
                ImportResult einResult =
                    results.FirstOrDefault
                        (x => x.ImportArea == ImportResultType.Eins);

                Assert.IsNotNull(einResult);
                Assert.True(einResult.Success);
                Assert.True(einResult.RecordsImported > 0);
                Assert.True(await ServiceProvider.GetService <IBulkImportRepository <Ein> >().CurrentRecords() ==
                            einResult.RecordsImported);

                //Findings
                ImportResult findingResult =
                    results.FirstOrDefault
                        (x => x.ImportArea == ImportResultType.Findings);

                Assert.IsNotNull(findingResult);
                Assert.True(findingResult.Success);
                Assert.True(findingResult.RecordsImported > 0);
                Assert.True(await ServiceProvider.GetService <IBulkImportRepository <Finding> >().CurrentRecords() ==
                            findingResult.RecordsImported);

                //Findings Text
                ImportResult findingTextResult =
                    results.FirstOrDefault
                        (x => x.ImportArea == ImportResultType.FindingsText);

                Assert.IsNotNull(findingTextResult);
                Assert.True(findingTextResult.Success);
                Assert.True(findingTextResult.RecordsImported > 0);
                Assert.True(await ServiceProvider.GetService <IBulkImportRepository <FindingText> >().CurrentRecords() ==
                            findingTextResult.RecordsImported);

                //Formatted Cap Text
                ImportResult formattedCapTextResult =
                    results.FirstOrDefault
                        (x => x.ImportArea == ImportResultType.FormattedCapText);

                Assert.IsNotNull(formattedCapTextResult);
                Assert.True(formattedCapTextResult.Success);
                Assert.True(formattedCapTextResult.RecordsImported > 0);
                Assert.True(await ServiceProvider.GetService <IBulkImportRepository <FormattedCapText> >().CurrentRecords() ==
                            formattedCapTextResult.RecordsImported);

                //Formatted Findings Text
                ImportResult formattedFindingTextResult =
                    results.FirstOrDefault
                        (x => x.ImportArea == ImportResultType.FormattedFindingsText);

                Assert.IsNotNull(formattedFindingTextResult);
                Assert.True(formattedFindingTextResult.Success);
                Assert.True(formattedFindingTextResult.RecordsImported > 0);
                Assert.True(await ServiceProvider.GetService <IBulkImportRepository <FormattedFindingsText> >().CurrentRecords() ==
                            formattedFindingTextResult.RecordsImported);

                //Passthough
                ImportResult passthroughResult =
                    results.FirstOrDefault
                        (x => x.ImportArea == ImportResultType.Passthrough);

                Assert.IsNotNull(passthroughResult);
                Assert.True(passthroughResult.Success);
                Assert.True(passthroughResult.RecordsImported > 0);
                Assert.True(await ServiceProvider.GetService <IBulkImportRepository <Passthrough> >().CurrentRecords() ==
                            passthroughResult.RecordsImported);
            }
            else
            {
                Assert.Fail();
            }
        }
 public ImportController()
 {
     ImportManager   = ServiceFactory.ImportManager;
     LinkManager     = ServiceFactory.LinkManager;
     DropTreeManager = ServiceFactory.DropTreeManager;
 }
Example #33
0
        public void Run()
        {
            try
            {
                Stopwatch stopwatchFull = Stopwatch.StartNew();

                _logger.LogInformation($"{nameof(Application)}.{nameof(Run)} execution invoked");

                _importValidator   = _serviceProvider.GetService <IImportValidator>();
                _typeListValidator = _serviceProvider.GetService <ITypeListValidator>();

                _importManager         = _serviceProvider.GetService <IImportManager>();
                _importStorageProvider = _serviceProvider.GetService <IImportStorageProvider>();

                _transformManager         = _serviceProvider.GetService <ITransformManager>();
                _transformStorageProvider = _serviceProvider.GetService <ITransformStorageProvider>();

                _mergeManager         = _serviceProvider.GetService <IMergeManager>();
                _mergeStorageProvider = _serviceProvider.GetService <IMergeStorageProvider>();

                //uncomment below to actually run import and transform stages - file based
                string formattedDateString = DateTime.UtcNow.ToString(DateFormatSpecifier);

                //Import
                Stopwatch stopwatchImport = Stopwatch.StartNew();

                string failureInfo;

                //Before we take the overhead of downloading all the import data, check that the data has the right overall structure
                bool isDataSourceValid = _importValidator.TryValidateDataSource(out failureInfo);
                if (!isDataSourceValid)
                {
                    _logger.LogWarning("Enlir Import Data not in Expected Format: \n" + failureInfo);
                    throw new ValidationException("Enlir Import Data not in Expected Format: \n" + failureInfo);
                }

                ImportResultsContainer importResultsContainer = _importManager.ImportAll();
                string importStoragePath = _importStorageProvider.StoreImportResults(importResultsContainer, formattedDateString);
                stopwatchImport.Stop();

                //cheat data setup for testing - comment out when doing full run for real
                //string importStoragePath = @"D:\Temp\FFRKApi\ImportResults-2018-12-21_09-48-46.json";
                //string transformStoragePath = @"D:\Docs\Personal\FFRKLinqQuery\TransformResults-Latest.json";
                //string formattedDateString = "2018-12-21_09-48-46";
                //string importContents = File.ReadAllText(importStoragePath);
                //ImportResultsContainer importResultsContainer = JsonConvert.DeserializeObject<ImportResultsContainer>(importContents);

                ////Now that we have the import data, we need to check whether our TypeLists (used to convert staring data into ids)
                ////is still accurate. If the source data has changed their list of values for each type, we need to stop and correct the TypeLists
                IEnumerable <TypeListDifferences> typeListDifferences = _typeListValidator.TryValidateTypeLists(importResultsContainer);
                if (typeListDifferences.Any(t => t.IsIdListDifferentFromSource))
                {
                    _logger.LogWarning("Enlir TypeList Data differs from coded TypeLists.");
                    //write validation failure data to log for easy perusal
                    string typeListDifferencesLogPath     = $"{AppContext.BaseDirectory}\\TypeListDifferencesLog.json";
                    string typeListDifferencesLogContents = JsonConvert.SerializeObject(typeListDifferences);
                    File.WriteAllText(typeListDifferencesLogPath, typeListDifferencesLogContents);
                    _logger.LogWarning("Enlir TypeList differences written to file: " + typeListDifferencesLogPath);

                    throw new ValidationException("Enlir Type List Data differs from coded TypeLists");
                }

                //Transform
                Stopwatch stopwatchTransform = Stopwatch.StartNew();
                TransformResultsContainer transformResultsContainer = _transformManager.TransformAll(importStoragePath);
                string transformStoragePath = _transformStorageProvider.StoreTransformResults(transformResultsContainer, formattedDateString);
                stopwatchTransform.Stop();

                //Merge
                Stopwatch             stopwatchMerge        = Stopwatch.StartNew();
                MergeResultsContainer mergeResultsContainer = _mergeManager.MergeAll(transformStoragePath);
                string mergeStoragePath = _mergeStorageProvider.StoreMergeResults(mergeResultsContainer, formattedDateString);
                stopwatchMerge.Stop();

                //test merge storage
                MergeResultsContainer testMergeResultsContainer = _mergeStorageProvider.RetrieveMergeResults(mergeStoragePath);

                stopwatchFull.Stop();

                _logger.LogInformation("Import Completed in {ImportTime} seconds", stopwatchImport.Elapsed.Seconds);
                _logger.LogInformation("Transform Completed in {TransformTime} seconds", stopwatchTransform.Elapsed.Seconds);
                _logger.LogInformation("Merge Completed in {MergeTime} seconds", stopwatchMerge.Elapsed.Seconds);
                _logger.LogInformation("Full Run Completed in {FullRunTime} seconds", stopwatchFull.Elapsed.Seconds);
                int aggregateTime = stopwatchImport.Elapsed.Seconds + stopwatchMerge.Elapsed.Seconds + stopwatchFull.Elapsed.Seconds;
                _logger.LogInformation("Full Run Aggregate Time in {AggregateTime} seconds", aggregateTime);
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, ex.Message);

                _logger.LogInformation("Error in Top Level Application execution. Validate, Import, Transform, and Merge operations were NOT successfully completed. Previously existing data is unchanged");
                throw;
            }
        }
 public GroupDealsController(
     IProductService productService,
     IProductTemplateService productTemplateService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     ICustomerService customerService,
     IUrlRecordService urlRecordService,
     IWorkContext workContext,
     ILanguageService languageService,
     ILocalizationService localizationService,
     ILocalizedEntityService localizedEntityService,
     ISpecificationAttributeService specificationAttributeService,
     IPictureService pictureService,
     ITaxCategoryService taxCategoryService,
     IProductTagService productTagService,
     ICopyProductService copyProductService,
     IPdfService pdfService,
     IExportManager exportManager,
     IImportManager importManager,
     ICustomerActivityService customerActivityService,
     IPermissionService permissionService,
     IAclService aclService,
     IStoreService storeService,
     IOrderService orderService,
     IStoreMappingService storeMappingService,
     IVendorService vendorService,
     IShippingService shippingService,
     IShipmentService shipmentService,
     ICurrencyService currencyService,
     CurrencySettings currencySettings,
     IMeasureService measureService,
     MeasureSettings measureSettings,
     AdminAreaSettings adminAreaSettings,
     IDateTimeHelper dateTimeHelper,
     IDiscountService discountService,
     IProductAttributeService productAttributeService,
     IBackInStockSubscriptionService backInStockSubscriptionService,
     IShoppingCartService shoppingCartService,
     IProductAttributeFormatter productAttributeFormatter,
     IProductAttributeParser productAttributeParser,
     IDownloadService downloadService,
     IRepository <GroupDeal> groupDealRepo,
     IRepository <GroupdealPicture> groupdealPictureRepo,
     IGroupDealService groupdealService,
     IGenericAttributeService genericAttributeService)
     : base(productService,
            productTemplateService,
            categoryService,
            manufacturerService,
            customerService,
            urlRecordService,
            workContext,
            languageService,
            localizationService,
            localizedEntityService,
            specificationAttributeService,
            pictureService,
            taxCategoryService,
            productTagService,
            copyProductService,
            pdfService,
            exportManager,
            importManager,
            customerActivityService,
            permissionService,
            aclService,
            storeService,
            orderService,
            storeMappingService,
            vendorService,
            shippingService,
            shipmentService,
            currencyService,
            currencySettings,
            measureService,
            measureSettings,
            adminAreaSettings,
            dateTimeHelper,
            discountService,
            productAttributeService,
            backInStockSubscriptionService,
            shoppingCartService,
            productAttributeFormatter,
            productAttributeParser,
            downloadService,
            groupDealRepo,
            groupdealPictureRepo,
            groupdealService,
            genericAttributeService)
 {
 }
 public ImportController(IImportManager importManager, IMappingManager mappingManager)
 {
     _itemManager    = importManager;
     _mappingManager = mappingManager;
 }
Example #36
0
 public ImportJob(IImportManager importManager)
 {
     _importManager = importManager;
 }
 public ProductController(IProductService productService, 
     IProductTemplateService productTemplateService,
     ICategoryService categoryService, 
     IManufacturerService manufacturerService,
     ICustomerService customerService,
     IUrlRecordService urlRecordService, 
     IWorkContext workContext, 
     ILanguageService languageService, 
     ILocalizationService localizationService, 
     ILocalizedEntityService localizedEntityService,
     ISpecificationAttributeService specificationAttributeService, 
     IPictureService pictureService,
     ITaxCategoryService taxCategoryService, 
     IProductTagService productTagService,
     ICopyProductService copyProductService, 
     IPdfService pdfService,
     IExportManager exportManager, 
     IImportManager importManager,
     ICustomerActivityService customerActivityService,
     IPermissionService permissionService, 
     IAclService aclService,
     IStoreService storeService,
     IOrderService orderService,
     IStoreMappingService storeMappingService,
      IVendorService vendorService,
     IShippingService shippingService,
     IShipmentService shipmentService,
     ICurrencyService currencyService, 
     CurrencySettings currencySettings,
     IMeasureService measureService,
     MeasureSettings measureSettings,
     AdminAreaSettings adminAreaSettings,
     IDateTimeHelper dateTimeHelper,
     IDiscountService discountService,
     IProductAttributeService productAttributeService,
     IBackInStockSubscriptionService backInStockSubscriptionService,
     IShoppingCartService shoppingCartService,
     IProductAttributeFormatter productAttributeFormatter,
     IProductAttributeParser productAttributeParser,
     IDownloadService downloadService)
 {
     this._productService = productService;
     this._productTemplateService = productTemplateService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._customerService = customerService;
     this._urlRecordService = urlRecordService;
     this._workContext = workContext;
     this._languageService = languageService;
     this._localizationService = localizationService;
     this._localizedEntityService = localizedEntityService;
     this._specificationAttributeService = specificationAttributeService;
     this._pictureService = pictureService;
     this._taxCategoryService = taxCategoryService;
     this._productTagService = productTagService;
     this._copyProductService = copyProductService;
     this._pdfService = pdfService;
     this._exportManager = exportManager;
     this._importManager = importManager;
     this._customerActivityService = customerActivityService;
     this._permissionService = permissionService;
     this._aclService = aclService;
     this._storeService = storeService;
     this._orderService = orderService;
     this._storeMappingService = storeMappingService;
     this._vendorService = vendorService;
     this._shippingService = shippingService;
     this._shipmentService = shipmentService;
     this._currencyService = currencyService;
     this._currencySettings = currencySettings;
     this._measureService = measureService;
     this._measureSettings = measureSettings;
     this._adminAreaSettings = adminAreaSettings;
     this._dateTimeHelper = dateTimeHelper;
     this._discountService = discountService;
     this._productAttributeService = productAttributeService;
     this._backInStockSubscriptionService = backInStockSubscriptionService;
     this._shoppingCartService = shoppingCartService;
     this._productAttributeFormatter = productAttributeFormatter;
     this._productAttributeParser = productAttributeParser;
     this._downloadService = downloadService;
 }
 public OverriddenProductController(AvalaraTaxManager avalaraTaxManager,
                                    IAclService aclService,
                                    IBackInStockSubscriptionService backInStockSubscriptionService,
                                    ICategoryService categoryService,
                                    ICopyProductService copyProductService,
                                    ICustomerActivityService customerActivityService,
                                    ICustomerService customerService,
                                    IDiscountService discountService,
                                    IDownloadService downloadService,
                                    IExportManager exportManager,
                                    IImportManager importManager,
                                    ILanguageService languageService,
                                    ILocalizationService localizationService,
                                    ILocalizedEntityService localizedEntityService,
                                    IManufacturerService manufacturerService,
                                    INopFileProvider fileProvider,
                                    INotificationService notificationService,
                                    IPdfService pdfService,
                                    IPermissionService permissionService,
                                    IPictureService pictureService,
                                    IProductAttributeParser productAttributeParser,
                                    IProductAttributeService productAttributeService,
                                    IProductModelFactory productModelFactory,
                                    IProductService productService,
                                    IProductTagService productTagService,
                                    ISettingService settingService,
                                    IShippingService shippingService,
                                    IShoppingCartService shoppingCartService,
                                    ISpecificationAttributeService specificationAttributeService,
                                    ITaxCategoryService taxCategoryService,
                                    ITaxPluginManager taxPluginManager,
                                    IUrlRecordService urlRecordService,
                                    IWorkContext workContext,
                                    VendorSettings vendorSettings,
                                    IWalletService walletService,
                                    IWalletDetailService walletDetailService) : base(aclService,
                                                                                     backInStockSubscriptionService,
                                                                                     categoryService,
                                                                                     copyProductService,
                                                                                     customerActivityService,
                                                                                     customerService,
                                                                                     discountService,
                                                                                     downloadService,
                                                                                     exportManager,
                                                                                     importManager,
                                                                                     languageService,
                                                                                     localizationService,
                                                                                     localizedEntityService,
                                                                                     manufacturerService,
                                                                                     fileProvider,
                                                                                     notificationService,
                                                                                     pdfService,
                                                                                     permissionService,
                                                                                     pictureService,
                                                                                     productAttributeParser,
                                                                                     productAttributeService,
                                                                                     productModelFactory,
                                                                                     productService,
                                                                                     productTagService,
                                                                                     settingService,
                                                                                     shippingService,
                                                                                     shoppingCartService,
                                                                                     specificationAttributeService,
                                                                                     urlRecordService,
                                                                                     workContext,
                                                                                     vendorSettings,
                                                                                     walletService,
                                                                                     walletDetailService)
 {
     _avalaraTaxManager       = avalaraTaxManager;
     _localizationService     = localizationService;
     _notificationService     = notificationService;
     _permissionService       = permissionService;
     _productAttributeService = productAttributeService;
     _productService          = productService;
     _taxCategoryService      = taxCategoryService;
     _taxPluginManager        = taxPluginManager;
 }
 public ImportController(IImportManager _importManager)
 {
     this._importManager = _importManager;
 }
Example #40
0
 public PostCategoryController(IUnitOfWork unitOfWork, IImportManager importManager, IExportManager exportManager)
 {
     _unitOfWork    = unitOfWork;
     _exportManager = exportManager;
     _importManager = importManager;
 }