Product{
id: int
name: String
price: double
}
IProductService{
findById(id) : Product
createProduct(name, price) : Product
updatePrice(id, newPrice) : Product
findAll() : List
findByPrice(price:double):List // products with price provided in argument
}
-
Add Product in store
-
Update Price
-
find product by id
-
find all products
-
Find products by price