public IActionResult ShowOutput(string name) { //var output = new ParserFrontend.Logic.OutputFiles(); // check if the file was processed // ... // ... return(new FileStreamResult(_outputFiles.GetOutputFile(name), "application/pdf")); }