public async Task <EmployeeDTO> GetEmployees(int id) { var employees = await _employeeService.GetEmployees(); var employee = employees.First(employee => employee.Id == id); return(MapperToDto.ComponentToDto(employee)); }
public async Task <IList <EmployeeDTO> > GetEmployees() { var employees = await _employeeService.GetEmployees(); return(MapperToDto.ComponentToDto(employees)); }