public CountryRepositoryController(ICountryRepository countryRepository, IInitializeRepositoriesHandler initializeRepositoriesHandler) { _countryRepository = countryRepository; initializeRepositoriesHandler.Controller = this; AddHandler(initializeRepositoriesHandler); }
public ArtistRepositoryController(IArtistRepository artistRepository, ISearchRequestedHandler searchRequestedHandler, IInitializeRepositoriesHandler initializeRepositoriesHandler) { _artistRepository = artistRepository; searchRequestedHandler.Controller = this; initializeRepositoriesHandler.Controller = this; AddHandler(searchRequestedHandler); AddHandler(initializeRepositoriesHandler); }