fix to f# controller

This commit is contained in:
Isaac Levin 2019-05-31 10:42:50 -04:00 committed by GitHub
parent 6743364423
commit 14f590829c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -22,11 +22,11 @@ type WeatherController () =
inherit ControllerBase()
[<HttpGet>]
member this.Get(location:string, unit: string) =
member this.Get(location:string, unit: TemperatureUnit) =
let rnd = System.Random()
let result:WeatherResult = {
Location = location;
Temperature = rnd.Next(-20,55);
TemperatureUnit = unit
}
ActionResult<WeatherResult>(result)
ActionResult<WeatherResult>(result)