I have a controller method with the following signature:
<code>[HttpDelete]
public async Task DoWork([FromBody] DoWorkRequest request){
}
</code>
<code>[HttpDelete]
public async Task DoWork([FromBody] DoWorkRequest request){
}
</code>
[HttpDelete]
public async Task DoWork([FromBody] DoWorkRequest request){
}
The request parameters is always null, even if the delete request has a body.
Is it expected behaviour that the body isn’t mapped for Delete requests?
I can manually extract the body from the request but this isn’t ideal and I would rather use the inbuilt model binding.