How do I get the collection of errors in a view?
I don\'t want to use the Html Helper Validation Summary or Validation Message. Instead I want to check for errors an
To just get the errors from the ModelState, use this Linq:
var modelStateErrors = this.ModelState.Keys.SelectMany(key => this.ModelState[key].Errors);