Versie module 1 van 26-7
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
const ProductRepository =
|
||||
require("../repositories/ProductRepository");
|
||||
|
||||
|
||||
class ProductService {
|
||||
|
||||
|
||||
getProducts() {
|
||||
|
||||
return ProductRepository.getAll();
|
||||
|
||||
}
|
||||
|
||||
|
||||
createProduct(data) {
|
||||
|
||||
return ProductRepository.create(data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
module.exports =
|
||||
new ProductService();
|
||||
Reference in New Issue
Block a user