public async Task <IActionResult> GetDisbursedReportDuesDetails(DisbursementReportDTO _DisbursementReportDTO) { pdisbursementdueslist = new List <DisbursementReportDuesDetailsDTO>(); try { pdisbursementdueslist = await _DisbursementDAL.GetDisbursedReportDuesDetails(_DisbursementReportDTO, Con); return(Ok(pdisbursementdueslist)); } catch (Exception ex) { return(Ok(ex.ToString())); //throw new FinstaAppException(ex.ToString()); //return StatusCode(StatusCodes.Status500InternalServerError); //throw new FinstaAppException(ex.ToString()); } }
public async Task <IActionResult> GetDisbursedReportDetails(DisbursementReportDTO _DisbursementReportDTO) { //DisbursementReportDTO _DisbursementReportDTO = new DisbursementReportDTO(); try { _DisbursementReportDTO = await _DisbursementDAL.GetDisbursedReportDetails(_DisbursementReportDTO, Con); return(Ok(_DisbursementReportDTO)); } catch (Exception ex) { return(Ok(ex)); //return StatusCode(StatusCodes.Status500InternalServerError); //throw new FinstaAppException(ex.ToString()); } }