public ActionResult <IEnumerable <EmployeeResponse> > GetAllEmployeeWithoutPosition(int idCompany) { try { var result = _employeeAppService.GetAllEmployeeWithoutPosition(idCompany).ToList(); var listEmployeeResponse = _mapper.Map <List <Employee>, List <EmployeeResponse> >(result); return(CustomResponse(listEmployeeResponse)); } catch (Exception ex) { MessageException(); return(CustomExceptionResponse()); } }