예제 #1
0
        public ActionResult <Order_Item> GetOrderItem([FromRoute] int id)
        {
            var order_item = order_itemRepository.GetById(id);

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

            return(order_item);
        }
예제 #2
0
 public Order_Item GetById([FromRoute] int id)
 {
     return(order_itemRepository.GetById(id));
 }