コード例 #1
0
        public async Task <ActionResult <IEnumerable <CartOrderRequest> > > AddProduct(
            int productId, int quantity, ProductRespone product)
        {
            var cartOrder = new CartOrderRespone
            {
                Product  = product,
                Quantity = quantity
            };

            var orders = await _cartService.AddOrder(cartOrder);

            return(Ok(orders));
        }
コード例 #2
0
 public async Task <IViewComponentResult> InvokeAsync(ProductRespone product)
 {
     return(await Task.FromResult(View("Default", product)));
 }