-aggiunta progetto originale (WEB) x conversione CONF
This commit is contained in:
Samuele Locatelli
2022-12-28 11:34:38 +01:00
parent b222948825
commit 161c57ffde
2211 changed files with 120442 additions and 0 deletions
@@ -0,0 +1,20 @@
namespace ConfMan.IOB.UI.Data
{
public class WeatherForecastService
{
private static readonly string[] Summaries = new[]
{
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};
public Task<WeatherForecast[]> GetForecastAsync(DateTime 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());
}
}
}