-Creato progetto base

-Modificato framework .NET da 7 a 9
This commit is contained in:
Alessio Dal Santo
2025-03-10 17:39:56 +01:00
parent f1376a8971
commit f965550fd6
35 changed files with 1402 additions and 0 deletions
@@ -0,0 +1,19 @@
namespace Data_Coupler.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());
}
}