Exemple #1
0
 public NewsController(INewsService newsService,
                       IWorkContext workContext, IPictureService pictureService, ILocalizationService localizationService,
                       ICustomerContentService customerContentService, IDateTimeHelper dateTimeHelper,
                       IWorkflowMessageService workflowMessageService, IWebHelper webHelper,
                       MediaSettings mediaSettings, NewsSettings newsSettings,
                       LocalizationSettings localizationSettings, CustomerSettings customerSettings,
                       StoreInformationSettings storeInformationSettings, MediaSettings mediaSetting, IExtraContentService extraContentService, ICacheManager cacheManager)
 {
     this._newsService            = newsService;
     this._workContext            = workContext;
     this._pictureService         = pictureService;
     this._localizationService    = localizationService;
     this._customerContentService = customerContentService;
     this._dateTimeHelper         = dateTimeHelper;
     this._workflowMessageService = workflowMessageService;
     this._webHelper                = webHelper;
     this._mediaSettings            = mediaSettings;
     this._newsSettings             = newsSettings;
     this._localizationSettings     = localizationSettings;
     this._customerSettings         = customerSettings;
     this._storeInformationSettings = storeInformationSettings;
     this._mediaSetting             = mediaSetting;
     this._extraContentService      = extraContentService;
     this._cacheManager             = EngineContext.Current.ContainerManager.Resolve <ICacheManager>("nop_cache_static");
 }
Exemple #2
0
 public NewsController(INewsService newsService, ILanguageService languageService,
                       IDateTimeHelper dateTimeHelper, ICustomerContentService customerContentService,
                       ILocalizationService localizationService, IPermissionService permissionService,
                       AdminAreaSettings adminAreaSettings, IPictureService pictureService,
                       ICategoryService categoryService, IManufacturerService manufacturerService,
                       IProductService productService, IWorkContext workContext, IExtraContentService extraContentService)
 {
     this._newsService            = newsService;
     this._languageService        = languageService;
     this._dateTimeHelper         = dateTimeHelper;
     this._customerContentService = customerContentService;
     this._localizationService    = localizationService;
     this._permissionService      = permissionService;
     this._adminAreaSettings      = adminAreaSettings;
     this._pictureService         = pictureService;
     this._productService         = productService;
     this._workContext            = workContext;
     this._categoryService        = categoryService;
     this._manufacturerService    = manufacturerService;
     this._extraContentService    = extraContentService;
 }