summaryrefslogtreecommitdiff
path: root/src/web.api/Models
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2019-10-20 15:40:31 -0600
committermo khan <mo.khan@gmail.com>2019-10-20 15:40:31 -0600
commit726468456ad606239176addaf1a3bbb63e0c7eb0 (patch)
tree4f81de40eff838f46cb3911f05dc36a53d33be92 /src/web.api/Models
parent8a98c812a4c370272807165d4377974bf4d7a376 (diff)
Use unix line endings
Diffstat (limited to 'src/web.api/Models')
-rw-r--r--src/web.api/Models/WeatherForecast.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/web.api/Models/WeatherForecast.cs b/src/web.api/Models/WeatherForecast.cs
new file mode 100644
index 0000000..666f578
--- /dev/null
+++ b/src/web.api/Models/WeatherForecast.cs
@@ -0,0 +1,12 @@
+using System;
+
+namespace web.api.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; }
+ }
+}