public ShowAdvertService(ApplicationContext applicationContext, IGenericRepository genericRepository, IGetAdvertService getAdvertService, IGetNextPreviousService getNextPreviousService) { _applicationContext = applicationContext; _genericRepository = genericRepository; _getAdvertService = getAdvertService; _getNextPreviousService = getNextPreviousService; }
// GET: Home public HomeController(IApplicationContext context, IEmailService emailService, ISearchService searchService, IShowAdvertService showAdvertService, ICounterService counterService, IOfferService offerService, ICalcService calcService, IGetNextPreviousService getNextPreviousService, INewestAdvertService newestAdvertService, IFilterIndexService filterIndexService, IGetFiltredAdvertsService getFiltredAdvertsService, IAdvertCitiesService advertCitiesService, IMaxPriceService maxPriceService) { _context = context; _emailService = emailService; _searchService = searchService; _showAdvertService = showAdvertService; _counterService = counterService; _offerService = offerService; _calcService = calcService; _getNextPreviousService = getNextPreviousService; _newestAdvertService = newestAdvertService; _filterIndexService = filterIndexService; _getFiltredAdvertsService = getFiltredAdvertsService; _advertCitiesService = advertCitiesService; _maxPriceService = maxPriceService; }