public void OnAddProductToCart(SelectProductRequest selectProductRequest)
 {
     _cartDatabase.AddProductToCart(selectProductRequest.IdCustomer, selectProductRequest.SelectedProduct);
 }
Example #2
0
 public IActionResult AddProductToCart([FromBody] SelectProductRequest request)
 {
     _cartDatabase.AddProductToCart(request.IdCustomer, request.SelectedProduct);
     return(new OkObjectResult(null));
 }