public HttpResponseMessage Save(ItemInstance it) { if (it.ID > 0) { return(Request.CreateResponse(HttpStatusCode.OK, it.Update())); } else { return(Request.CreateResponse(HttpStatusCode.OK, it.Save())); } }