public NewsController(
     IAddNews addNews,
     IDeleteAllNews deleteAllNews,
     IDeleteNews deleteNews,
     IGetAllNews getAllNews,
     IGetNews getNews,
     IUpdateNews updateNews)
 {
     _addNews       = addNews;
     _deleteAllNews = deleteAllNews;
     _deleteNews    = deleteNews;
     _getAllNews    = getAllNews;
     _getNews       = getNews;
     _updateNews    = updateNews;
 }
Пример #2
0
 public NewsController(ILoggingService logger, IGetNews getNews)
 {
     _getNews = getNews;
     _logger  = logger;
 }
Пример #3
0
 public NewsController()
 {
     _sizePage   = GetSizePage();
     _getNews    = new NewsGetService(_sizePage);
     _pagination = new PaginationService();
 }
Пример #4
0
 public ServicesManager(IGetNews service)
 {
     getnews = service;
 }