public HttpResponseMessage Get(string id) { items entity = new items(); entity = entity.Get(id); if (entity != null) { return(Request.CreateResponse(HttpStatusCode.OK, entity)); } else { return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "Entity with ID " + id + " not found.")); } }
public IEnumerable <items> Get() { items items = new items(); return(items.Get()); }