Example #1
0
        public ActionResult <Document> GetDocument(string id)
        {
            var document = engine.GetDocument(id);

            if (document is null)
            {
                return(NotFound(new FileNotFoundException()));
            }
            return(Ok(document));
        }