aboutsummaryrefslogtreecommitdiff
path: root/Web/Data/WeatherForecast.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Web/Data/WeatherForecast.cs')
-rw-r--r--Web/Data/WeatherForecast.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/Web/Data/WeatherForecast.cs b/Web/Data/WeatherForecast.cs
new file mode 100644
index 0000000..da9ee74
--- /dev/null
+++ b/Web/Data/WeatherForecast.cs
@@ -0,0 +1,15 @@
+using System;
+
+namespace Web.Data
+{
+ 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; }
+ }
+}