ajay kumar

ajay kumar

  • 716
  • 1k
  • 34k

changes not reflecting to data base

Oct 5 2016 9:41 AM
public JsonResult SaveData(Models.Student student)
{
Student obj = db.Students.Find(student.Id);
obj.Id = student.Id;
obj.Name = student.Name;
obj.Email = student.Email;
db.Students.Add(obj);
db.SaveChangesAsync();
 
but Database is not updating 

Answers (4)