public NewsManagementController(IFilterService filterService, ICategoryService categoryService, INewsFileService newsFileService, IUserDeviceInfoService userDeviceInfoService, IConfiguration configuration)
 {
     this._filterService         = filterService;
     this._categoryService       = categoryService;
     this._newsFileService       = newsFileService;
     this._userDeviceInfoService = userDeviceInfoService;
     this._configuration         = configuration;
 }
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 NewsService( INewsTagService newsTagService, INewsFileService fileService, IRepository<News> newsContext)
 {
     _newsTagService = newsTagService;
     _fileService = fileService;
     _newsContext = newsContext;
 }