Exemple #1
0
        /// <summary>
        /// constructor
        /// </summary>
        /// <param name="catalogLogic"></param>
        /// <param name="profileLogic"></param>
        /// <param name="exportSettingsLogic"></param>
        /// <param name="elRepo"></param>
        /// <param name="campaignService"></param>
        /// <param name="campaignLogic"></param>
        public CatalogController(ICatalogLogic catalogLogic, IUserProfileLogic profileLogic, IListService listService,
                                 IExportSettingLogic exportSettingsLogic, IEventLogRepository elRepo, ICatalogCampaignService campaignService,
                                 ICatalogCampaignLogic campaignLogic, ISiteCatalogService catalogService) : base(profileLogic)
        {
            _campaignLogic           = campaignLogic;
            _campaignService         = campaignService;
            _catalogLogic            = catalogLogic;
            _exportSettingRepository = exportSettingsLogic;
            _catalogService          = catalogService;
            _listService             = listService;

            this._elRepo = elRepo;
        }
        public ImportLogicImpl(ICatalogLogic catalogLogic, IEventLogRepository eventLogRepository, IShoppingCartLogic shoppingCartLogic, IPriceLogic priceLogic,
                               ICustomInventoryItemsRepository customInventoryRepo, ISiteCatalogService catalogService)
        {
            this.catalogLogic       = catalogLogic;
            _catalogService         = catalogService;
            this.eventLogRepository = eventLogRepository;
            this.shoppingCartLogic  = shoppingCartLogic;
            this.priceLogic         = priceLogic;
            _customInventoryRepo    = customInventoryRepo;

            _errors   = new StringBuilder();
            _warnings = new StringBuilder();
        }