Versie 1.0
This commit is contained in:
@@ -19,6 +19,41 @@ class ProductService {
|
||||
}
|
||||
|
||||
|
||||
createProducts(data) {
|
||||
|
||||
return ProductRepository.createMany(data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
getProduct(id) {
|
||||
|
||||
return ProductRepository.findById(id);
|
||||
|
||||
}
|
||||
|
||||
|
||||
updateProduct(id, data) {
|
||||
|
||||
return ProductRepository.update(id, data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
productHasListItems(id) {
|
||||
|
||||
return ProductRepository.hasListItems(id);
|
||||
|
||||
}
|
||||
|
||||
|
||||
deleteProduct(id) {
|
||||
|
||||
return ProductRepository.delete(id);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user