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