MapPost: Parameters are null
This is my Post endpoint
When sending a Request with this Payload
the Endpoint is hit, but the Name-Property in RegisterDto is still null
with [FromBody] and [AsParameters] i have the same issue
What does the JSON have to look like so that it works?
5 Replies
just the name works fine,
but at the client i want to serialize the whole object and send it
It is the whole object
It has a single property
The name of it is "Name"
eventually serializing the whole thing with the dto-name is not a good idea?
More like a "why" idea
it felt more intuitive when i try to send a nested json, when the name of the top is included
Well i'll just make it the way it is supposed to be. Thx.