Attributes like BindRequired make an action parameter to be required, even the usual model validation attributes can be applied. How can you make all properties from a class be required to be present in the request body?
If you have access to change the class: decorate all the properties with[Required]
or [BindRequired]
.
If you don't, you should make a DTO (Data Transfer Object) for that class and apply [Required]
or [BindRequired]
attributes.