PIAPS_CW/RestAPI/WeatherForecast.cs

14 lines
274 B
C#
Raw Normal View History

2024-05-09 17:45:03 +04:00
namespace RestAPI
{
public class WeatherForecast
{
public DateOnly Date { get; set; }
public int TemperatureC { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
public string? Summary { get; set; }
}
}