public IActionResult FileContents(bool fileName, bool etag)
        {
            string webRoot  = this.hostingEnvironment.WebRootPath;
            var    contents = System.IO.File.ReadAllBytes(Path.Combine(webRoot, "TestFile.txt"));

            ResumingFileContentResult result = this.ResumingFile(contents, "text/plain", fileName ? "TestFile.txt" : null, etag ? EntityTag : null);

            result.LastModified = this.lastModified;
            return(result);
        }
        public IActionResult FileContents(bool fileName)
        {
            string webRoot  = this.hostingEnvironment.WebRootPath;
            var    contents = System.IO.File.ReadAllBytes(Path.Combine(webRoot, "TestFile.txt"));

            var result = new ResumingFileContentResult(contents, "text/plain")
            {
                FileInlineName = "TestFile.txt",
                LastModified   = this.lastModified
            };

            return(result);
        }