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)); }
public async Task <IViewComponentResult> InvokeAsync(ProductRespone product) { return(await Task.FromResult(View("Default", product))); }