This comes in handy when tracing ModelState issues.

var errors = ModelState
.Where(x => x.Value.Errors.Count > 0)
.Select(x => new { x.Key, x.Value.Errors })
.ToArray();

This will grab a list of properties from your model and their respective errors and assign them to the errors variable.