public HttpResponseMessage GetItemFromList(int listId, int itemId) { var result = listQueries.GetItemFromList(listId, itemId); if (result != null) { return(Request.CreateResponse(HttpStatusCode.OK, result)); } return(Request.CreateResponse(HttpStatusCode.NotFound)); }