public HttpResponseMessage GetAll(string query) { var orderLines = _orderLineRepository.GetAllRecords(query); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, orderLines); return(response); }
public OrderLine GetOrderLineByOrderId(long orderId) { return(_orderLineRepository.GetAllRecords("SELECT * FROM [OrderLine] WHERE OrderNumber = " + orderId.ToString()).FirstOrDefault()); }