public async Task <List <IEmployeeDto> > GetEmployee() { var employeeFactory = new EmployeeFactory(); var listEmployees = await _employeeRepository.GetEmployee(); var listEmployesDto = new List <IEmployeeDto>(); foreach (var itemEmployee in listEmployees) { listEmployesDto.Add(employeeFactory.EmployeeCreate(itemEmployee)); } return(listEmployesDto); }