SyntaxFix
Write A Post
Hire A Developer
Questions
Using LINQ:
IEnumerable<ModelError> allErrors = ModelState.Values.SelectMany(v => v.Errors);