예제 #1
0
 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;
 }
예제 #2
0
 // GET: Home
 public HomeController(INewestAdvertsService newestAdvertsService,
                       ICitiesService citiesService,
                       IReadAdvertService readAdvertService,
                       IFilterOptionService filterOptionService,
                       IAdvertSearchOptionService advertSearchOptionService,
                       ISearchAdvertService searchAdvertService,
                       IEmailRepository emailRepository)
 {
     _newestAdvertsService      = newestAdvertsService;
     _citiesService             = citiesService;
     _readAdvertService         = readAdvertService;
     _filterOptionService       = filterOptionService;
     _advertSearchOptionService = advertSearchOptionService;
     _searchAdvertService       = searchAdvertService;
     _emailRepository           = emailRepository;
 }