Exemple #1
0
        public Task <IActionResult> ExportInspectionsAsync()
        {
            string fileDownloadName           = $"inspections-export-{DateTime.Now}.csv";
            IAsyncEnumerable <string> records = _inspectionService.ExportAllRowsAsync();

            return(Task.FromResult <IActionResult>(new CsvFileResult(records, fileDownloadName)));
        }