public SmartSearchController(IProductService productService, ICategoryService categoryService, IRepository <Order> orderRepository, IPictureService pictureService, SmartSearchSettings smartSearchSettings, ISettingService settingService, ILogger logger, ICacheManager cacheManager, ILocalizationService localizationService, MediaSettings mediaSettings, IWorkContext workContext, IStoreContext storeContext, IWebHelper webHelper, CatalogSettings catalogSettings, IPermissionService permissionService, IPriceFormatter priceFormatter) { _workContext = workContext; _localizationService = localizationService; _priceFormatter = priceFormatter; _catalogSettings = catalogSettings; _permissionService = permissionService; _smartSearchSettings = smartSearchSettings; _settingService = settingService; _logger = logger; _smartSearchService = new SmartSearchService(productService, categoryService, orderRepository, pictureService, _smartSearchSettings, _logger, cacheManager, _localizationService, mediaSettings, _workContext, storeContext, webHelper); }
public void GenerateSmartSearchFeed() { _productFeedService = new SmartSearchService(_productService, _categoryService, _orderRepository, _pictureService, _smartSearchSettings, _logger, _cacheManager, _localizationService, _mediaSettings, _workContext, _storeContext, _webHelper); _productFeedService.GenerateSmartSearchFeedFile(); }