class CategoryServiceImpl implements CategoryService {

    @Override
    public List<CategoryDto> findAllCategoryDto() {
        List<Category> categories = findAll();
        return categories.stream()
            .map(category -> modelMapper.map(category, CategoryDto.class))
            .collect(Collectors.toList());
    }

}