AspNetCore.Docs.Samples/mvc/models/BindTryParseMVC/Models/WeatherForecast.cs

14 lines
289 B
C#
Raw Normal View History

2022-07-15 05:24:37 +08:00
namespace BindTryParseMVC.Models
{
public class WeatherForecast
{
public DateTime Date { get; set; }
public int TemperatureC { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
public string? Summary { get; set; }
}
}