public void Update(T entity) { context.Entry(entity).State = Microsoft.EntityFrameworkCore.EntityState.Modified; context.SaveChanges(); }
public Student PutStudent(int id, Student student) { _context.Entry(student).State = Microsoft.EntityFrameworkCore.EntityState.Modified; _context.SaveChanges(); return(student); }