ajay kumar

ajay kumar

  • NA
  • 1k
  • 34.3k

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)