public TownsController(ITownsService townsService, IStreetsService streetsService, ICategoriesService categoriesService, IEventsService eventService) { this.townsService = townsService ?? throw new ArgumentNullException(nameof(townsService)); this.streetsService = streetsService ?? throw new ArgumentNullException(nameof(streetsService)); this.categoriesService = categoriesService ?? throw new ArgumentNullException(nameof(categoriesService)); this.eventsService = eventService ?? throw new ArgumentNullException(nameof(eventService)); }
public StreetsController(IStreetsService streetsService, ICitiesService citiesService) { this.streetsService = streetsService; this.citiesService = citiesService; }
public BuildingsController(IBuildingsService buildingsService, IStreetsService streetsService) { this.buildingsService = buildingsService; this.streetsService = streetsService; }