コード例 #1
0
        public async Task <IActionResult> GetSubAccountLedgerReportData(string SubLedgerName, long parentid, string fromDate, string toDate)
        {
            _SubAccountLedgerDTO = new subAccountLedgerDTO();
            try
            {
                _SubAccountLedgerDTO.plstSubAccountLedger = await _AccountingReportsDAL.GetSubLedgerReportData(Con, SubLedgerName, parentid, fromDate, toDate);
            }
            catch (Exception ex)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError));

                throw new FinstaAppException(ex.ToString());
            }
            return(Ok(_SubAccountLedgerDTO.plstSubAccountLedger));
        }
コード例 #2
0
        public async Task <IActionResult> GetSubAccountLedgerDetails()
        {
            _SubAccountLedgerDTO = new subAccountLedgerDTO();
            try
            {
                _SubAccountLedgerDTO.plstSubAccountLedger = await _AccountingReportsDAL.GetSubAccountLedgerDetails(Con);
            }
            catch (Exception ex)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError));

                throw new FinstaAppException(ex.ToString());
            }
            return(Ok(_SubAccountLedgerDTO.plstSubAccountLedger));
        }