Exemplo n.º 1
0
        public async Task <IActionResult> GetExcelFiles()
        {
            byte[] data = await ExportExcelHelper.GenerateExcelFile(EmployeeRepository.EmployeeData());

            string filePath = Path.Combine(Directory.GetCurrentDirectory(), "Exports", "export.xlsx");

            System.IO.File.WriteAllBytes(filePath, data);
            return(Ok(filePath));
        }