public async Task <IActionResult> DownloadResultsDataFormatAndRulesGuideAsync()
        {
            var fileName   = DocumentResource.TlevelDataFormatAndRulesGuide.Results_Data_Format_And_Rules_Guide_File_Name_Text;
            var fileStream = await _documentLoader.GetTechSpecFileAsync(BlobStorageConstants.ResultsFolderName, fileName);

            if (fileStream == null)
            {
                return(RedirectToRoute(RouteConstants.PageNotFound));
            }

            fileStream.Position = 0;
            return(new FileStreamResult(fileStream, "text/xlsx")
            {
                FileDownloadName = fileName
            });
        }
Exemplo n.º 2
0
 public async override Task When()
 {
     ActualResult = await Loader.GetTechSpecFileAsync(FolderName, FileName);
 }