コード例 #1
0
        public async Task <IActionResult> View(int id)
        {
            var order = await _orders.GetOrderAsync(id);

            foreach (var i in order.Items)
            {
                i.Item = InventoryController.items.First(ii => ii.Id == i.ItemId);
            }
            return(View(order));
        }