Esempio n. 1
0
 public IActionResult AddItemToCheckout([FromBody] DiscountedCheckoutItem item)
 {
     _checkoutService.AddItemToCheckout(item.Product.Sku, item.Quantity, item.BuyUnit, item.DiscountRule);
     return(CreatedAtAction(
                "GetCheckoutItem",
                new { id = item.Product.Sku },
                item
                ));
 }