Exemplo n.º 1
0
 public NewsController(INewsService newsService,
                       INewsTagService newsTagService,
                       ILanguageService languageService,
                       IDateTimeHelper dateTimeHelper,
                       IEventPublisher eventPublisher,
                       IPictureService pictureService,
                       ILocalizationService localizationService,
                       ILocalizedEntityService localizedEntityService,
                       IPermissionService permissionService,
                       IUrlRecordService urlRecordService,
                       IStoreService storeService,
                       IStoreMappingService storeMappingService,
                       ICustomerActivityService customerActivityService)
 {
     this._newsService             = newsService;
     this._newsTagService          = newsTagService;
     this._languageService         = languageService;
     this._dateTimeHelper          = dateTimeHelper;
     this._eventPublisher          = eventPublisher;
     this._pictureService          = pictureService;
     this._localizationService     = localizationService;
     this._localizedEntityService  = localizedEntityService;
     this._permissionService       = permissionService;
     this._urlRecordService        = urlRecordService;
     this._storeService            = storeService;
     this._storeMappingService     = storeMappingService;
     this._customerActivityService = customerActivityService;
 }
Exemplo n.º 2
0
        public NewsController(IUserService userService, INewsService newsService, INewsTagService newsTagService, INewsFileService newsFileService)
        {
            _newsService = newsService;
            _newsTagService = newsTagService;
            _newsFileService = newsFileService;
            _userService = userService;

            ViewBag.IsAdmin = _userService.IsUserInRole("Admin");
        }
Exemplo n.º 3
0
 public NewsController(INewsService newsService, INewsGroupService newsGroupService, IUserService userService
                       , INewsTagService newsTagService, INewsGalleryService newsGalleryService, IWebHostEnvironment env)
 {
     _newsGroupService   = newsGroupService;
     _newsService        = newsService;
     _newsTagService     = newsTagService;
     _newsGalleryService = newsGalleryService;
     _userService        = userService;
     _env = env;
 }
Exemplo n.º 4
0
 public NewsService( INewsTagService newsTagService, INewsFileService fileService, IRepository<News> newsContext)
 {
     _newsTagService = newsTagService;
     _fileService = fileService;
     _newsContext = newsContext;
 }