public ActionResult <Document> GetDocument(string id) { var document = engine.GetDocument(id); if (document is null) { return(NotFound(new FileNotFoundException())); } return(Ok(document)); }