public async Task <IActionResult> GetReceiptsandPaymentsLoadingData(string formname) { _accountsmasterdto = new AccountsMasterDTO(); try { _accountsmasterdto.banklist = await _AccountingTransactionsDAL.GetBankntList(Con); _accountsmasterdto.modeofTransactionslist = await _AccountingTransactionsDAL.GetModeoftransactions(Con); _accountsmasterdto.accountslist = await _AccountingTransactionsDAL.GetLedgerAccountList(Con, formname); _accountsmasterdto.partylist = await _AccountingTransactionsDAL.GetPartyList(Con); _accountsmasterdto.Gstlist = await _AccountingTransactionsDAL.GetGstPercentages(Con); _accountsmasterdto.bankdebitcardslist = await _AccountingTransactionsDAL.GetDebitCardNumbers(Con); _accountsmasterdto.cashbalance = await _AccountingTransactionsDAL.getcashbalance(Con); _accountsmasterdto.bankbalance = _AccountingTransactionsDAL.GetBankBalance(0, Con); return(Ok(_accountsmasterdto)); } catch (Exception ex) { return(StatusCode(StatusCodes.Status500InternalServerError)); throw new FinstaAppException(ex.ToString()); } }
public async Task <IActionResult> GetBankDetailsbyId(long pbankid) { _accountsmasterdto = new AccountsMasterDTO(); try { _accountsmasterdto.bankupilist = await _AccountingTransactionsDAL.GetUpiNames(pbankid, Con); _accountsmasterdto.chequeslist = await _AccountingTransactionsDAL.GetChequeNumbers(pbankid, Con); return(Ok(_accountsmasterdto)); } catch (Exception ex) { return(StatusCode(StatusCodes.Status500InternalServerError)); throw new FinstaAppException(ex.ToString()); } }
public async Task <IActionResult> getPartyDetailsbyid(long ppartyid) { _accountsmasterdto = new AccountsMasterDTO(); try { _accountsmasterdto.statelist = await _AccountingTransactionsDAL.getStatesbyPartyid(ppartyid, Con, 1); _accountsmasterdto.lstTdsSectionDetails = await _AccountingTransactionsDAL.getTdsSectionsbyPartyid(ppartyid, Con); _accountsmasterdto.accountbalance = await _AccountingTransactionsDAL.getpartyAccountbalance(ppartyid, Con); return(Ok(_accountsmasterdto)); } catch (Exception ex) { return(StatusCode(StatusCodes.Status500InternalServerError)); throw new FinstaAppException(ex.ToString()); } }