Kizspy | Question: 50
(Choose 1 answer)
In a controller decorated with [ApiController], what happens automatically if ModelState.IsValid is false?
A. The action method still executes as normal.
B. An HTTP 500 Internal Server Error is returned.
C. The request is automatically rejected with an HTTP 400 Bad Request response containing details of the validation
errors.
D. The application logs the error and returns an HTTP 200 OK.