// POST api/DocIndexValue
        public HttpResponseMessage PostDocIndexValue(DocIndexValue docindexvalue)
        {
            if (ModelState.IsValid)
            {
                db.DocIndexValues.Add(docindexvalue);
                db.SaveChanges();

                HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created, docindexvalue);
                response.Headers.Location = new Uri(Url.Link("DefaultApi", new { id = docindexvalue.Id }));
                return response;
            }
            else
            {
                return Request.CreateResponse(HttpStatusCode.BadRequest);
            }
        }
        // PUT api/DocIndexValue/5
        public HttpResponseMessage PutDocIndexValue(int id, DocIndexValue docindexvalue)
        {
            if (ModelState.IsValid && id == docindexvalue.Id)
            {
                db.Entry(docindexvalue).State = EntityState.Modified;

                try
                {
                    db.SaveChanges();
                }
                catch (DbUpdateConcurrencyException)
                {
                    return Request.CreateResponse(HttpStatusCode.NotFound);
                }

                return Request.CreateResponse(HttpStatusCode.OK);
            }
            else
            {
                return Request.CreateResponse(HttpStatusCode.BadRequest);
            }
        }