public FavoriteController(IHostingEnvironment httpHostEnvironment, TaliaWeatherContext weatherContext) { hostEnvironment = httpHostEnvironment; _context = weatherContext; }
public CityWeatherController(IConfiguration configuration, IHostingEnvironment httpHostEnvironment, TaliaWeatherContext weatherContext) { _configuration = configuration; _context = weatherContext; hostEnvironment = httpHostEnvironment; apiKey = _configuration["apiKey"]; }