Jrockhub.ExportExcel.NETCore (nuget): To export/download the List<T> or IEnumerable<T> data as an excel file, add action method in your controller as shown below. Return the data as ExcelResult<T>/CSVResult<T> by passing filtered/ordered data, sheet name and file name. ExcelResult/CSVResult Action Result that I have added in the Nuget package. This will take care of converting your data as excel/csv file and return it back to browser.
Keywords: MVC|Export|Excel|.NETCore|Datatable|CSV