public SearchController( IAutopartsService autopartsService, ICarsService carsService, IAutopartsCharacteristicsService autopartsCharacteristicsService) { this.autopartsService = autopartsService; this.carsService = carsService; this.autopartsCharacteristicsService = autopartsCharacteristicsService; }
public AutopartsController( IAutopartsService autopartsService, ICarsService carsService, IAutopartsCharacteristicsService autopartsCharacteristicsService, IWebHostEnvironment env, IFavoritesService favoritesService) { this.autopartsService = autopartsService; this.carsService = carsService; this.autopartsCharacteristicsService = autopartsCharacteristicsService; this.env = env; this.favoritesService = favoritesService; }