public ValueTuple <List <TransactionSearchLedgerViewModel>, TotalTransactionAmount> CreateLedgerVoucherList(int deptmentId, TransactionListRequestModel requestModel) { DataSet set = this.accountsAppAPI.CreateLedgerVoucherList(this.sKey, requestModel.FromDate, requestModel.ToDate, requestModel.ToInstituteId, requestModel.VoucherTypeId, deptmentId, requestModel.ForInstituteId); List <TransactionSearchLedgerViewModel> d1 = this.TransactionLedgerTableToList(set.Tables[0]); TotalTransactionAmount amount = set.Tables[1].DataTableToList <TotalTransactionAmount>().FirstOrDefault <TotalTransactionAmount>(); if (set != null) { return(new ValueTuple <List <TransactionSearchLedgerViewModel>, TotalTransactionAmount>(d1, amount)); } return(new ValueTuple <List <TransactionSearchLedgerViewModel>, TotalTransactionAmount>()); }
public ValueTuple <List <TransactionSearchLedgerViewModel>, TotalTransactionAmount> CreateLedgerVoucherBykeyword(int instId, int finId, string searchValue) { DataSet set = this.accountsAppAPI.CreateLedgerVoucherBykeyword(this.sKey, instId, finId, searchValue); List <TransactionSearchLedgerViewModel> d1 = this.TransactionLedgerTableToList(set.Tables[0]); TotalTransactionAmount amount = set.Tables[1].DataTableToList <TotalTransactionAmount>().FirstOrDefault <TotalTransactionAmount>(); if (set != null) { return(new ValueTuple <List <TransactionSearchLedgerViewModel>, TotalTransactionAmount>(d1, amount)); } return(new ValueTuple <List <TransactionSearchLedgerViewModel>, TotalTransactionAmount>()); }