GetFromJsonAsync and nested objects using FluentResults
I am working on a controller and service that uses FluentResults but I am running into some issues when returning objects inside of the result.
Whenever the above code is ran, the response contains the Result with the correct success message. But the Member itself which is stored in the value property is missing. The controller returns the correct object but even when I map it as a json it fails to do this and returns a null. I'm absolutely clueless what is causing this.
The response from the controller looks as follows.
5 Replies
Why would your API return a
Result
like that?If you have no further questions, please use /close to mark the forum thread as answered
Ah that explains a lot. My understanding was that fluent results were supposed to be used through all layers. I will create a dto for it instead.