Exemple #1
0
        public ArticleController(
            ICommonServices services,
            IArticleService articleService,
            IUserContentService userContentService,
            IUserService userService,
            IUserActivityService userActivityService,
            IWorkflowMessageService workflowMessageService,
            IAclService aclService,
            ISiteMappingService siteMappingService,
            ArticleCatalogSettings catalogSettings,
            LocalizationSettings localizationSettings,
            ILocalizationService localizationService,
            ArticleCatalogHelper helper, IArticleTagService articleTagService,
            IRecentlyViewedArticlesService recentlyViewedArticlesService,
            CaptchaSettings captchaSettings,
            IWebHelper webHelper,
            IWorkContext workContext
            )
        {
            this._services               = services;
            this._articleService         = articleService;
            this._userContentService     = userContentService;
            this._userService            = userService;
            this._userActivityService    = userActivityService;
            this._workflowMessageService = workflowMessageService;
            this._aclService             = aclService;
            this._siteMappingService     = siteMappingService;
            this._catalogSettings        = catalogSettings;
            this._localizationSettings   = localizationSettings;
            this._localizationService    = localizationService;
            this._helper                        = helper;
            this._articleTagService             = articleTagService;
            this._recentlyViewedArticlesService = recentlyViewedArticlesService;
            this._workContext                   = workContext;
            this._captchaSettings               = captchaSettings;
            this._webHelper                     = webHelper;

            T = NullLocalizer.Instance;
        }
        public ArticleCatalogController(
            ICommonServices services,
            IClientService clientService,
            IArticleCategoryService articlecategoryService,
            IModelTemplateService modelTemplateService,
            IArticleService articleService, IArticleTagService articlesTagService,
            IPictureService pictureService,
            IGenericAttributeService genericAttributeService,
            IAclService aclService,
            ISiteMappingService siteMappingService,
            MediaSettings mediaSettings,
            ArticleCatalogSettings catalogSettings,
            IRecentlyViewedArticlesService recentlyViewedArticlesService,
            //IFilterService filterService,
            ArticleCatalogHelper helper,
            Lazy <ISearchProvider> searchProvider
            )
        {
            this._services                      = services;
            this._clientService                 = clientService;
            this._articlecategoryService        = articlecategoryService;
            this._articleService                = articleService;
            this._articlesTagService            = articlesTagService;
            this._modelTemplateService          = modelTemplateService;
            this._pictureService                = pictureService;
            this._genericAttributeService       = genericAttributeService;
            this._aclService                    = aclService;
            this._siteMappingService            = siteMappingService;
            this._recentlyViewedArticlesService = recentlyViewedArticlesService;
            //this._filterService = filterService;
            this._mediaSettings   = mediaSettings;
            this._catalogSettings = catalogSettings;

            this._helper         = helper;
            this._searchProvider = searchProvider;
            T = NullLocalizer.Instance;
        }