Skip to content

Commit

Permalink
Update basic-crud-in-fsharp.md (MicrosoftDocs#316)
Browse files Browse the repository at this point in the history
I think the brackets were misplaced and did not match description of intent.
  • Loading branch information
CraigChamberlain authored Jul 25, 2024
1 parent 8aa40a4 commit d358036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Odata-docs/webapi-8/tutorials/basic-crud-in-fsharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ To support this request, we add a controller action named `Post` to the `PeopleC
```fsharp
[<HttpPost>]
member this.Post([<FromBody>] person : Person) =
if not (this.ModelState.IsValid || person.Id = 0) then
if not (this.ModelState.IsValid) || person.Id = 0 then
this.BadRequest() :> ActionResult
else
match DataSource.People |> Seq.tryFind(fun d -> d.Id.Equals(person.Id)) with
Expand Down

0 comments on commit d358036

Please sign in to comment.