use of gov.ca.cwds.cals.service.dto.CountiesDTO in project cals-api by ca-cwds.
the class CountiesService method find.
@Override
public Response find(Serializable serializable) {
final CountiesDTO countiesDTO = new CountiesDTO();
List<County> counties = countiesDao.findAll();
counties.forEach((County county) -> countiesDTO.getCounties().add(countyMapper.toCountyDTO(county)));
return countiesDTO;
}
Aggregations