public IEnumerable <WeatherForecast> Get()
 {
     return(Enumerable.Range(1, 5)
            .Select(index => WeatherForecast.GetWeatherForectast(index))
            .ToArray());
 }
Exemplo n.º 2
0
 public void OnGet()
 {
     WeatherForecasts = Enumerable.Range(1, 5)
                        .Select(index => WeatherForecast.GetWeatherForectast(index))
                        .ToList();
 }