コード例 #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
ファイル: DocController.cs プロジェクト: Vittallya/Api
        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)));
        }