public Task <int> Update(Salesperson person, CancellationToken ct)
        {
            _context.Entry(person).State = EntityState.Modified;

            return(_context.SaveChangesAsync(ct));
        }
Beispiel #2
0
 public async Task <int> Update(Customer customer, CancellationToken ct)
 {
     _context.Entry(customer).State = EntityState.Modified;
     return(await _context.SaveChangesAsync(ct));
 }
Beispiel #3
0
        public async Task <int> Update(OrderItem item, CancellationToken ct)
        {
            _context.Entry(item).State = EntityState.Modified;

            return(await _context.SaveChangesAsync(ct));
        }