Class CartController
java.lang.Object
springboot.bg.harisauto.web.controller.CartController
CartController.java - Controller for handling shopping cart-related web requests.
- Author:
- Kristian Popov
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CartController
public CartController()
-
-
Method Details
-
addToCart
Add item to the cart.- Parameters:
id- The service id.- Returns:
- The services page.
-
removeFromCart
Remove item from the cart.- Parameters:
id- The service id.- Returns:
- The services page.
-
clearCart
Clear the cart.- Returns:
- The services page.
-
checkout
Checkout the cart.- Returns:
- The booking page.
-