Пример #1
0
 public IEnumerable <WeatherForecast> WeatherForecasts(int startDateIndex)
 {
     return(forecasts.Get(startDateIndex));
 }
Пример #2
0
 public async Task <IActionResult> GetSingleWeatherForecast(string weatherForecastID)
 {
     return(Ok(await _weatherRepository.Get(weatherForecastID)));
 }
 public IEnumerable <WeatherForecast> Get()
 {
     return(_weatherForecastRepository.Get());
 }
 public IEnumerable <WeatherForecast> GetWeatherForecast()
 => _weatherForecastRepository.Get();