4
Answers

changes not reflecting to data base

Ask a question
ajay kumar

ajay kumar

8y
364
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)