// POST api/Doc
        public HttpResponseMessage PostDoc(Doc doc)
        {
            if (ModelState.IsValid)
            {
                db.Docs.Add(doc);
                db.SaveChanges();

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

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

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