public IActionResult PhysicalFile(bool fileName)
        {
            string webRoot = this.hostingEnvironment.WebRootPath;

            var result = new ResumingPhysicalFileResult(Path.Combine(webRoot, "TestFile.txt"), "text/plain")
            {
                FileInlineName = "TestFile.txt",
                LastModified   = this.lastModified
            };

            return(result);
        }
        public IActionResult PhysicalFile(bool fileName, bool etag)
        {
            string webRoot = this.hostingEnvironment.WebRootPath;

            ResumingPhysicalFileResult result = this.ResumingPhysicalFile(
                Path.Combine(webRoot, "TestFile.txt"),
                "text/plain",
                fileName ? "TestFile.txt" : null,
                etag ? EntityTag : null);

            result.LastModified = this.lastModified;
            return(result);
        }