//[Route("DetailsOfOrder/{orderId}")]
        public async Task <ActionResult <List <OrderDetail> > > GetDetailsOfAnOrder(int orderId)
        {
            var orderDetails = await _repo.SelectOrderAllDetails(orderId);

            if (orderDetails == null)
            {
                return(NotFound());
            }
            return(orderDetails);
        }
        // GET: OrderDetails/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var orderDetail = await _repo.SelectOrderAllDetails(id);

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

            return(View(orderDetail));
        }