🧱 added new template for api-endpoint
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
This commit is contained in:
parent
a260cb63b7
commit
040c416f14
7 changed files with 134 additions and 5 deletions
12
backend/WeatherForecast.cs
Normal file
12
backend/WeatherForecast.cs
Normal 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; }
|
||||
}
|
Reference in a new issue