public HttpResponseMessage GetItem(int id) { Item item = _itemManagement.GetItem(id); if (item != null) { return(Request.CreateResponse(HttpStatusCode.OK, item)); } else { return(Request.CreateResponse(HttpStatusCode.BadRequest)); } }
public HttpResponseMessage GetItem(int id) { return(Request.CreateResponse(HttpStatusCode.OK, _itemManagement.GetItem(id))); }