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")); }
public async Task <IActionResult> getReport(Guid reportId) { var report = await _reportRepo.GetReport(reportId); return(Ok(report)); }