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