public async Task <EmployeeDTO> GetId(int id) { var domainEmployee = await ListEmployee.GetById(id); return(EmployeeToEmployeeDTO.Map(domainEmployee)); }
public async Task <List <EmployeeDTO> > Get() { var domainEmployees = await ListEmployee.GetAll(); return(EmployeeToEmployeeDTO.Map(domainEmployees)); }