Skip to content

Commit 14f5908

Browse files
authored
fix to f# controller
1 parent 6743364 commit 14f5908

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-FSharp/Controllers/WeatherController.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ type WeatherController () =
2222
inherit ControllerBase()
2323

2424
[<HttpGet>]
25-
member this.Get(location:string, unit: string) =
25+
member this.Get(location:string, unit: TemperatureUnit) =
2626
let rnd = System.Random()
2727
let result:WeatherResult = {
2828
Location = location;
2929
Temperature = rnd.Next(-20,55);
3030
TemperatureUnit = unit
3131
}
32-
ActionResult<WeatherResult>(result)
32+
ActionResult<WeatherResult>(result)

0 commit comments

Comments
 (0)