// PUT api/NeedItem/5
        public HttpResponseMessage PuterNeedItem(int id, erNeedItem erneeditem)
        {
            if (!ModelState.IsValid)
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }

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

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

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

            return Request.CreateResponse(HttpStatusCode.OK);
        }
        // POST api/NeedItem
        public HttpResponseMessage PosterNeedItem(erNeedItem erneeditem)
        {
            if (ModelState.IsValid)
            {
                db.NeedItems.Add(erneeditem);
                db.SaveChanges();

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