Esempio n. 1
0
        public ActionResult GetOrderItemBYId(int Id)
        {
            var orderItem = _OrderItemService.FindById(Id);

            if (orderItem == null)
            {
                return(NotFound("This Client Id does not exist."));
            }

            return(Ok(orderItem));
        }
        public IActionResult Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var orderItem = _orderItemService.FindById(id.Value);

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

            return(View(orderItem));
        }