Beispiel #1
0
        public async Task <List <EmployeeViewModel> > GetAllEmployeeAsync(
            CancellationToken ct = default(CancellationToken))
        {
            var employees = EmployeeConverter.ConvertList(await _employeeRepository.GetAllAsync(ct));

            return(employees);
        }
Beispiel #2
0
        public async Task <List <EmployeeViewModel> > GetDirectReportsAsync(int id,
                                                                            CancellationToken ct = default(CancellationToken))
        {
            var employees = await _employeeRepository.GetDirectReportsAsync(id, ct);

            return(EmployeeConverter.ConvertList(employees).ToList());
        }