public void Update(User entity) { _context.Entry(entity).State = EntityState.Modified; }
public void Update(Event entity) { _context.Attach(entity); _context.Entry(entity).State = EntityState.Modified; }