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; }
public NewsController(ILoggingService logger, IGetNews getNews) { _getNews = getNews; _logger = logger; }
public NewsController() { _sizePage = GetSizePage(); _getNews = new NewsGetService(_sizePage); _pagination = new PaginationService(); }
public ServicesManager(IGetNews service) { getnews = service; }