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
This will give you one string with all the errors with comma separating
string validationErrors = string.Join(",", ModelState.Values.Where(E => E.Errors.Count > 0) .SelectMany(E => E.Errors) .Select(E => E.ErrorMessage) .ToArray());