// PUT api/HaveItem/5
        public HttpResponseMessage PuterHaveItem(int id, erHaveItem erhaveitem)
        {
            if (!ModelState.IsValid)
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }

            if (id != erhaveitem.Id)
            {
                return Request.CreateResponse(HttpStatusCode.BadRequest);
            }

            db.Entry(erhaveitem).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException ex)
            {
                return Request.CreateErrorResponse(HttpStatusCode.NotFound, ex);
            }

            return Request.CreateResponse(HttpStatusCode.OK);
        }
        // POST api/HaveItem
        public HttpResponseMessage PosterHaveItem(erHaveItem erhaveitem)
        {
            if (ModelState.IsValid)
            {
                db.HaveItems.Add(erhaveitem);
                db.SaveChanges();

                HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created, erhaveitem);
                response.Headers.Location = new Uri(Url.Link("DefaultApi", new { id = erhaveitem.Id }));
                return response;
            }
            else
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }
        }