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