diff --git a/SampleApp/Controllers/WeatherForecastController.cs b/SampleApp/Controllers/WeatherForecastController.cs index 32fd9dc..a536cad 100644 --- a/SampleApp/Controllers/WeatherForecastController.cs +++ b/SampleApp/Controllers/WeatherForecastController.cs @@ -29,5 +29,19 @@ public IEnumerable Get() }) .ToArray(); } + + + + public IEnumerable GetAll() + { + return Enumerable.Range(1, 5).Select(index => new WeatherForecast + { + Date = DateOnly.FromDateTime(DateTime.Now.AddDays(index)), + TemperatureC = Random.Shared.Next(-20, 55), + Summary = Summaries[Random.Shared.Next(Summaries.Length)] + }) + .ToArray(); + + } } }