🧱 added new template for api-endpoint

Co-authored-by: haraldnilsen <harald_998@hotmail.com>
This commit is contained in:
Sindre Kjelsrud 2023-09-13 10:37:53 +02:00
parent a260cb63b7
commit 040c416f14
7 changed files with 134 additions and 5 deletions

View file

@ -0,0 +1,12 @@
namespace backend;
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; }
}