C# .NET MVC3 ModelState.IsValid
问题 Im using JSON to post data from a form and ModelState.isValid() returning false, i put a WriteLine for all incoming data and everything looks fine data wise, is there a way to display model state errors to figure out what is not validating? this exact code works fine with other models [HttpPost] public ActionResult mobileCreateAction(Trip trip) { if (ModelState.IsValid) { System.Diagnostics.Debug.WriteLine("saving"); DB.Trips.Add(trip); DB.SaveChanges(); return Json(new { success = true, msg