Пример #1
0
        public async Task <EmployeeDTO> GetEmployees(int id)
        {
            var employees = await _employeeService.GetEmployees();

            var employee = employees.First(employee => employee.Id == id);

            return(MapperToDto.ComponentToDto(employee));
        }
Пример #2
0
        public async Task <IList <EmployeeDTO> > GetEmployees()
        {
            var employees = await _employeeService.GetEmployees();

            return(MapperToDto.ComponentToDto(employees));
        }