public AdminController( IGetPropertiesByAdvertType getPropertiesByAdvertType, IPhotoService photoService, IGetAdvertTypes getAvailableAdvertTypes, ICreateAdvertService createAdvertService, ICountMessagesAndAdverts countMessagesAndAdverts, IFilterOptionService filterOptionService, IFilterAdvertService filterAdvertService, IReadAdvertService readAdvertService, IUpdateAdvertService updateAdvertService, IDeleteAdvertService deleteAdvertService, IAdminLoginService adminLoginService, IMessageService messageService) { _getPropertiesByAdvertType = getPropertiesByAdvertType; _photoService = photoService; _getAvailableAdvertTypes = getAvailableAdvertTypes; _createAdvertService = createAdvertService; _countMessagesAndAdverts = countMessagesAndAdverts; _filterOptionService = filterOptionService; _filterAdvertService = filterAdvertService; _readAdvertService = readAdvertService; _updateAdvertService = updateAdvertService; _deleteAdvertService = deleteAdvertService; _adminLoginService = adminLoginService; _messageService = messageService; }
// GET: Admin public AdminController(IApplicationContext applicationContext, IAddAdvertService addAdvertService, IUpdateAdvertService updateAdvertService, IAdminLoginService adminLoginService, IEmailService emailService, IAdminFilterAdvertService adminFilterAdvertService, IOfferService offerService, IDeleteMessageService deleteMessageService, IGenericRepository genericRepository, ISearchService searchService, IChangeAdvertVisibility changeAdvertVisibility, ICalcService calcService, IAdminSettingsService adminSettingsService) { _applicationContext = applicationContext; _addAdvertService = addAdvertService; _updateAdvertService = updateAdvertService; _adminLoginService = adminLoginService; _emailService = emailService; _adminFilterAdvertService = adminFilterAdvertService; _offerService = offerService; _deleteMessageService = deleteMessageService; _genericRepository = genericRepository; _searchService = searchService; _changeAdvertVisibility = changeAdvertVisibility; _calcService = calcService; _adminSettingsService = adminSettingsService; }