public List <Order> Orders(int custID) { var orders = _Repository.GetOrders(custID); if (orders == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.NotFound)); } return(orders); }
public List <Order> Orders(int custID) { var orders = _Repository.GetOrders(custID); if (orders == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.NotFound)); } return(orders); }