//NOT
        //public async Task<IActionResult> GetDocumentStats(string fileName)
        public IActionResult GetDocumentStats(string fileName)
        {
            //get the indicated file from the DICTIONARY using the DAO
            var file = dataAccessObject.GetFileAsString(fileName);

            //get the word count with the helper
            FileSpecs fileSpecs = new FileSpecs(fileName);

            //send the data back to the web page (SPA) as an Http response
            var obj  = fileSpecs.GetSpecsFromStringFile(file);
            var json = Newtonsoft.Json.JsonConvert.SerializeObject(obj);

            return(Ok(json));
        }