Exemplo n.º 1
0
        public async Task <IActionResult> GenerateStudentFeePdfReportAsync([FromBody] FeeManagementReportQueryAc feeManagementReportQueryAc)
        {
            int currentUserInstituteId = await GetUserCurrentSelectedInstituteIdAsync();

            FeeManagementReportResponseAc feeManagementReportResponse = await _feeManagementRepository.GenerateStudentFeeReportAsync(feeManagementReportQueryAc, currentUserInstituteId);

            return(Ok(feeManagementReportResponse));
        }
Exemplo n.º 2
0
        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));
        }