c# - ModelState.IsValid == false, why? - Stack Overflow

PHOTO EMBED

Thu Aug 24 2023 12:58:11 GMT+0000 (Coordinated Universal Time)

Saved by @destinyChuck #cs

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

https://stackoverflow.com/questions/1791570/modelstate-isvalid-false-why