Exemple #1
0
        public async Task <Customer> GetByIdAsync(int id, CancellationToken ct = default)
        {
            var customer = await _context.GetCustomerAsync(id);

            return(customer.First());
        }
Exemple #2
0
 public async Task <Customer> GetByIdAsync(int id, CancellationToken ct = default(CancellationToken))
 {
     return(_context.GetCustomerAsync(id).Result.First());
 }