public void ExportToExcel(IEnumerable <DataTable> dataTables, string fileName, bool launchExcel) { ExportToExcelTask.ExportDataTablesToExcel(dataTables, fileName, launchExcel); }
public Task ExportToExcelAsync(IEnumerable <DataTable> dataTables, string fileName, bool launchExcel = true) => Task.Run(() => ExportToExcelTask.ExportDataTablesToExcel(dataTables, fileName, launchExcel));