package com.example.autopartz.service.impl; import com.example.autopartz.model.Category; import com.example.autopartz.repository.CategoryRepository; import com.example.autopartz.service.CategoryService; import org.springframework.stereotype.Service; import java.util.List; @Service public class CategoryServiceImpl implements CategoryService { private final CategoryRepository categoryRepository; public CategoryServiceImpl(CategoryRepository categoryRepository) { this.categoryRepository = categoryRepository; } @Override public List findAll() { return categoryRepository.findAll(); } }