Using ASP.NET Web API. Is there a way to automatically return a status code 400 if a parameter is null? I found this question but that is a global solution that is applied
Set [Required] on a property in your model and then check the ModelState to see if it IsValid.
[Required]
ModelState
IsValid
This will allow all the required properties to be tested at the same time.
See the "Under-Posting" section @ Model validation in WebAPI