示例#1
0
 public CustomCatalogController(
     IAbcPromoService abcPromoService,
     ICategoryService categoryService,
     ILocalizationService localizationService,
     IManufacturerService manufacturerService,
     IUrlRecordService urlRecordService,
     IProductModelFactory productModelFactory,
     ICatalogModelFactory categoryModelFactory,
     ILogger logger,
     AbcPromosSettings settings,
     CatalogSettings catalogSettings,
     IHttpContextAccessor httpContextAccessor
     )
 {
     _abcPromoService     = abcPromoService;
     _categoryService     = categoryService;
     _localizationService = localizationService;
     _manufacturerService = manufacturerService;
     _urlRecordService    = urlRecordService;
     _productModelFactory = productModelFactory;
     _catalogModelFactory = categoryModelFactory;
     _logger          = logger;
     _settings        = settings;
     _catalogSettings = catalogSettings;
 }
 public GenerateRebatePromoPageTask(
     IRepository <Topic> topicRepository,
     IRepository <Product> productRepository,
     IRepository <ProductAbcDescription> productAbcDescriptionRepository,
     IRepository <ProductManufacturer> productManufacturerRepository,
     IAbcPromoService abcPromoService,
     IManufacturerService manufacturerService,
     IPictureService pictureService,
     IProductService productService,
     ITopicService topicService,
     IUrlRecordService urlRecordService,
     ILogger logger,
     MediaSettings mediaSettings,
     AbcPromosSettings settings
     )
 {
     _topicRepository   = topicRepository;
     _productRepository = productRepository;
     _productAbcDescriptionRepository = productAbcDescriptionRepository;
     _productManufacturerRepository   = productManufacturerRepository;
     _abcPromoService     = abcPromoService;
     _manufacturerService = manufacturerService;
     _pictureService      = pictureService;
     _productService      = productService;
     _topicService        = topicService;
     _urlRecordService    = urlRecordService;
     _logger        = logger;
     _mediaSettings = mediaSettings;
     _settings      = settings;
 }
示例#3
0
        public async Task <IActionResult> Configure(ConfigModel model)
        {
            await _settingService.SaveSettingAsync(AbcPromosSettings.FromModel(model));

            _notificationService.SuccessNotification(await _localizationService.GetResourceAsync("Admin.Plugins.Saved"));

            return(Configure());
        }
示例#4
0
 public AbcPromosController(
     AbcPromosSettings settings,
     INotificationService notificationService,
     ILocalizationService localizationService,
     ISettingService settingService
     )
 {
     _settings            = settings;
     _notificationService = notificationService;
     _localizationService = localizationService;
     _settingService      = settingService;
 }
示例#5
0
 public UpdatePromosTask(
     CoreSettings coreSettings,
     AbcPromosSettings settings,
     ILogger logger,
     ICustomNopDataProvider nopDataProvider,
     IAbcPromoService abcPromoService,
     IManufacturerService manufacturerService,
     IUrlRecordService urlRecordService,
     GenerateRebatePromoPageTask generateRebatePromoPageTask
     )
 {
     _coreSettings                = coreSettings;
     _logger                      = logger;
     _nopDataProvider             = nopDataProvider;
     _abcPromoService             = abcPromoService;
     _manufacturerService         = manufacturerService;
     _urlRecordService            = urlRecordService;
     _generateRebatePromoPageTask = generateRebatePromoPageTask;
 }