I need to ignor validation errors of all properties of specific class in ModelState. For instance I have view model which contents the Customer class and Customer contents Address class. I need to ignore all validation errors of Address properties.
How to ignor validation errors of all properties of specific class in ModelState
42 views Asked by Petr At
1
ModelState.Errors.Clear() ? this'll clear the errors, you can always copy them into another collection for reuse.