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; }
public NewsController(IUserService userService, INewsService newsService, INewsTagService newsTagService, INewsFileService newsFileService) { _newsService = newsService; _newsTagService = newsTagService; _newsFileService = newsFileService; _userService = userService; ViewBag.IsAdmin = _userService.IsUserInRole("Admin"); }
public NewsService( INewsTagService newsTagService, INewsFileService fileService, IRepository<News> newsContext) { _newsTagService = newsTagService; _fileService = fileService; _newsContext = newsContext; }