How to export .csv file from controller in .NET Core MVC App / Web API C#?
This blog post also helps you if you are looking for How to Export CSV files from ASP.NET core? or How can I return a CSV file in ASP.Net Core? or How to create a web API that returns .csv file as output? or How to return .csv file from .NET Core controller?