Projekt erstellt

This commit is contained in:
Simon Lübeß
2023-08-02 16:20:21 +02:00
parent e6084fd00d
commit 8f9d8edfbd
37 changed files with 1859 additions and 0 deletions

View File

@ -0,0 +1,19 @@
namespace KIKunstKirstenKlöckner.Data;
public class WeatherForecastService
{
private static readonly string[] Summaries = new[]
{
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};
public Task<WeatherForecast[]> GetForecastAsync(DateOnly startDate)
{
return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast
{
Date = startDate.AddDays(index),
TemperatureC = Random.Shared.Next(-20, 55),
Summary = Summaries[Random.Shared.Next(Summaries.Length)]
}).ToArray());
}
}