Recently I was having an issue where a parameter being passed in to my WebAPI call was not being populated correctly.
Theoretically all you need to do is add [FromBody] to the route, and it will automatically populate the object from the HTTP message’s body… but that wasn’t working for me
Turns out this IS the correct syntax, but my model (MyObject) was wrong:
Make sure that your model’s setter properties are public, otherwise the serializer can’t fill in the properties correctly.