public void Update(GradeReport entity) { _gradereportContext.Entity(entity).State= System.Data.Entity.EntityState.Modified; _gradereportContext.SaveChanges(); }
public void Add(GradeReport entity) { _studentContext.Student.Add(entity); _studentContext.SaveChanges(); }