public void Update(User user) { _context.Entry(user).State = System.Data.Entity.EntityState.Modified; _context.SaveChanges(); }
public void Update(Book book) { _context.Entry(book).State = System.Data.Entity.EntityState.Modified; _context.SaveChanges(); }
public void Update(Customer customer) { _context.Entry(customer).State = System.Data.Entity.EntityState.Modified; _context.SaveChanges(); }