Example #1
0
        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());
            }
        }
Example #2
0
        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());
            }
        }