public ActionResult Post(string path, DocumentItem model)
        {
            var doc = model.ToDocument();

            doc.Path = path;
            documents.Create(doc);
            return(new HttpStatusCodeResult(HttpStatusCode.OK));
        }
        public ActionResult Put(string path, string id, DocumentItem model)
        {
            var doc = model.ToDocument();

            doc.Path = path;
            doc.ID   = id;
            documents.Save(doc);
            return(new HttpStatusCodeResult(HttpStatusCode.OK));
        }