Should I try to take BadRequest(ModelState) returned from my API, and deserialize to *what* with JSON.NET?
问题 TL;DR; "I like how my generated AutoRest client deserializes my main entities when dealing with the 200 scenarios.. but, MUST I manually parse the 400 scenarios?", said the lazy programmer DETAILS: So, I have an API, (Web API 2), and I do all the standard stuff.. using POCO's that implement IValidatable in addition to property-level validation using System.Data.DataAnnotations my Web API returns 400 errors like this (just an example): if (!ModelState.IsValid) { return BadRequest(ModelState);