Beispiel #1
0
 public async Task<WeatherData> GetWeatherAsync (AppDbContext parameterDbContext, Location location, DateTimeOffset? dateTime)
 {
     await Task.Delay(2000);
     return GetWeather(parameterDbContext, location, dateTime);
 }
Beispiel #2
0
 public WeatherData GetWeather(AppDbContext parameterDbContext, Location location, DateTimeOffset? dateTime)
     => new WeatherData { TempFahrenheit = 42, Humidity = db.Cases.Count(), Location = location };