I have a Blazor Webassembly ASP.NET Core hosted app, on the server I have a controler that returns a File, and on the Client I would like to have a button that when the user clicks on it download the file, How Can I achive this?
This is my Controller
[HttpGet("{reportName}")]
public FileResult GetReport(string reportName)
{
var stream = _reportPrintRepository.Print(reportName);
return File(stream, System.Net.Mime.MediaTypeNames.Application.Pdf, reportName + ".pdf");
}