4
Answers

changes not reflecting to data base

ajay kumar

ajay kumar

8y
366
1
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)