Hai Am trying AngularJS - Crud operation so when i save data in database
Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.
this error is coming upand am using JsonResult like
public JsonResult AddStudent(DataAccess.Student student)
{
//try
//{
if (ModelState.IsValid)
{
sampleEntity.Students.Add(student);
sampleEntity.SaveChanges();
return Json(new { status = "Student added successfully" });
}
}
how to slove this plz help me
check following attachment

Sandip G PatilRank #1,083 · 1.8K reputationPosted Feb 7, 2017, 3:39 AM EST
(In order to Enlarge images Please Right Click and Open images in New Tab).
Add below namespaces use breakpoint
using System.Data.Entity.Validation;using System.Diagnostics;
Ravi PatelRank #439 · 5.7K reputationPosted Jan 21, 2017, 6:15 AM EST