WebAPI POST [FromBody] not binding

You are missing the Content-Type header in your Request.

Unfortunately even if you had checked for ModelState, we are not throwing any error information. However, the good news is that this behavior has been fixed for our coming release and you would see a 415 status code based response.

Web API requires the Content-Type header to find out the right formatter to deserialize the body to the parameter on the action.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)