public ActionResult <Order_Item> GetOrderItem([FromRoute] int id) { var order_item = order_itemRepository.GetById(id); if (order_item == null) { return(NotFound()); } return(order_item); }
public Order_Item GetById([FromRoute] int id) { return(order_itemRepository.GetById(id)); }