public HttpResponseMessage GetOrderedItem() { try { var orderedItems = _repository.GetOrderedItems(); return(Request.CreateResponse <List <OrderedItem> >(HttpStatusCode.OK, orderedItems)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.NotFound, ex)); } }