public async Task <IActionResult> GenerateStudentFeePdfReportAsync([FromBody] FeeManagementReportQueryAc feeManagementReportQueryAc) { int currentUserInstituteId = await GetUserCurrentSelectedInstituteIdAsync(); FeeManagementReportResponseAc feeManagementReportResponse = await _feeManagementRepository.GenerateStudentFeeReportAsync(feeManagementReportQueryAc, currentUserInstituteId); return(Ok(feeManagementReportResponse)); }
public async Task <FileResult> GenerateStudentFeeExcelReportAsync([FromBody] FeeManagementReportQueryAc feeManagementReportQueryAc) { int currentUserInstituteId = await GetUserCurrentSelectedInstituteIdAsync(); FeeManagementReportResponseAc feeManagementReportResponse = await _feeManagementRepository.GenerateStudentFeeReportAsync(feeManagementReportQueryAc, currentUserInstituteId); return(File(feeManagementReportResponse.FileByteArray, feeManagementReportResponse.ResponseType, feeManagementReportResponse.FileName)); }