This blog explains how you can return files to client from ASP.NET Core application using fileresult actionresults like FileContentResult, FileStreamResult, VirtualFileResult, PhysicalFileResult.
https://geeksarray.com/blog/aspnet-core-mvc-returning-file-using-fileresult