change excel download api controller
This commit is contained in:
@@ -52,9 +52,10 @@ public class CaseHistoryController : ClientBaseController
|
||||
}
|
||||
|
||||
[HttpGet("excel")]
|
||||
public async Task<IActionResult> GetDownload()
|
||||
public async Task<IActionResult> 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");
|
||||
|
||||
Reference in New Issue
Block a user