FileResult In ASP.NET Core MVC

PHOTO EMBED

Mon Nov 01 2021 08:51:20 GMT+0000 (Coordinated Universal Time)

Saved by @level48

public FileContentResult DownloadContent()  
{  
            var myfile = System.IO.File.ReadAllBytes("wwwroot/Files/FileContentResult.pdf");  
            return new FileContentResult(myfile, "application/pdf");  
} 
content_copyCOPY

https://www.c-sharpcorner.com/article/fileresult-in-asp-net-core-mvc2/