public async Task <IActionResult> OrderDetail(int id) { var result = await _orderApiClient.GetOrderById(id); foreach (var el in result.orderDetail) { var tempProduct = await _productApiClient.GetProductById((int)el.ProductId); el.Image = tempProduct.ProductImages[0]; el.Price = (decimal)tempProduct.Price; el.ProductName = tempProduct.ProductName; } return(View(result)); }