From 90fa0ac8f8eed3cdc273c6f95faba1e27877cedd Mon Sep 17 00:00:00 2001 From: mahan Date: Wed, 14 Jan 2026 10:20:58 +0330 Subject: [PATCH] change excel download api controller --- .../Client/Controllers/RollCall/CaseHistoryController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ServiceHost/Areas/Client/Controllers/RollCall/CaseHistoryController.cs b/ServiceHost/Areas/Client/Controllers/RollCall/CaseHistoryController.cs index 1e709fa0..40a8a9d4 100644 --- a/ServiceHost/Areas/Client/Controllers/RollCall/CaseHistoryController.cs +++ b/ServiceHost/Areas/Client/Controllers/RollCall/CaseHistoryController.cs @@ -52,9 +52,10 @@ public class CaseHistoryController : ClientBaseController } [HttpGet("excel")] - public async Task GetDownload() + public async Task GetDownload(string titleId,RollCallCaseHistorySearchModel searchModel) { - byte[] excelBytes = RollCallExcelGenerator.CaseHistoryExcelForOneDay(caseHistoryRollCallExcelForOneDay); + var data = await _rollCallApplication.GetCaseHistoryDetails(_workshopId, titleId, searchModel); + byte[] excelBytes = RollCallExcelGenerator.CaseHistoryExcelForOneDay(data); return File(excelBytes, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", $"{workshopFullName} - {caseHistoryRollCallExcelForOneDay.DayOfWeekFa}،{caseHistoryRollCallExcelForOneDay.DateFa}.xlsx");