예제 #1
0
        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));
            }
        }
예제 #2
0
 public HttpResponseMessage GetItem(int id)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, _itemManagement.GetItem(id)));
 }