Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

Set bool = false if any properties fail validation?

$
0
0

I have a bool property in a class that should be set to false if any of the properties in that same calss failed validation. I am using the ModelState object to record the validation errors. Any ideas how to check the state for the class and set a bool based on that calss's state during validation.

 

Please help?


Viewing all articles
Browse latest Browse all 4850

Latest Images

Trending Articles



Latest Images