Exemple #1
0
        // GET: Orders/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var order = await _context.GetOrderAsync(id.Value);

            if (order == null)
            {
                return(NotFound());
            }

            return(View(order));
        }