示例#1
0
        public IActionResult GetDoc(string name)
        {
            var doc = _services.GetDoc(name);

            if (doc == null)
            {
                return(NotFound("The file with the specified name was not found"));
            }
            return(Ok(Map(doc)));
        }
示例#2
0
        public IActionResult GetDoc(string name)
        {
            var doc = _services.GetDoc(name);

            if (doc == null)
            {
                return(NotFound("The file with the specified name was not found"));
            }
            //_logger.LogInformation(DateTime.Now.ToShortDateString() + "\r\n" +
            //                        DateTime.Now.ToLongTimeString() + ": Get a file");
            return(Ok(Map(doc)));
        }