We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6743364 commit 14f5908Copy full SHA for 14f5908
src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-FSharp/Controllers/WeatherController.fs
@@ -22,11 +22,11 @@ type WeatherController () =
22
inherit ControllerBase()
23
24
[<HttpGet>]
25
- member this.Get(location:string, unit: string) =
+ member this.Get(location:string, unit: TemperatureUnit) =
26
let rnd = System.Random()
27
let result:WeatherResult = {
28
Location = location;
29
Temperature = rnd.Next(-20,55);
30
TemperatureUnit = unit
31
}
32
- ActionResult<WeatherResult>(result)
+ ActionResult<WeatherResult>(result)
0 commit comments