Example #1
0
        public HttpResponseMessage GetAll(string query)
        {
            var orderLines = _orderLineRepository.GetAllRecords(query);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, orderLines);

            return(response);
        }
Example #2
0
 public OrderLine GetOrderLineByOrderId(long orderId)
 {
     return(_orderLineRepository.GetAllRecords("SELECT * FROM [OrderLine] WHERE OrderNumber = " + orderId.ToString()).FirstOrDefault());
 }