Exemplo n.º 1
0
        public async Task <EmployeeDTO> GetId(int id)
        {
            var domainEmployee = await ListEmployee.GetById(id);

            return(EmployeeToEmployeeDTO.Map(domainEmployee));
        }
Exemplo n.º 2
0
        public async Task <List <EmployeeDTO> > Get()
        {
            var domainEmployees = await ListEmployee.GetAll();

            return(EmployeeToEmployeeDTO.Map(domainEmployees));
        }