Ejemplo n.º 1
0
        public async Task <FileContentResult> GetReports([FromBody] GenContentMultiReturn[] model)
        {
            var file = await _reportRepo.GetReport(model);

            FileContentResult returnfile = new FileContentResult(file, "application/xlsx");

            return(File(file, "application/xlsx", "test.xlsx"));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> getReport(Guid reportId)
        {
            var report = await _reportRepo.GetReport(reportId);

            return(Ok(report));
        }