public async Task <Employee> GetByIdAsync(int id, CancellationToken ct = default(CancellationToken))
 {
     return(_context.GetEmployeeAsync(id).Result.First());
 }
Ejemplo n.º 2
0
        public async Task <Employee> GetByIdAsync(int id, CancellationToken ct = default)
        {
            var employee = await _context.GetEmployeeAsync(id);

            return(employee.First());
        }