Amend server-side blazor template WeatherForecast TemperatureF to use formula - fixes #9955 (#9981)

This commit is contained in:
Howard Richards 2019-05-05 14:19:41 +01:00 committed by Pranav K
parent ec4c3c4f8d
commit 77424a6b06
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ namespace RazorComponentsWeb_CSharp.Data
public int TemperatureC { get; set; }
public int TemperatureF { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
public string Summary { get; set; }
}