Exemplo n.º 1
0
        public decimal?GetWithdrawalAmount(Guid walletId)
        {
            var type = DBConstant.GetDescription(DBConstant.ETransactionType.Withdrawal);

            return(_uow.Repository <WalletTransaction>().GetAsQueryable(filter: x => x.WalletId == walletId && x.TransactionType == type).Sum(x => x.Debit));
        }
Exemplo n.º 2
0
        public decimal?GetReturnInterestReceivedAmount(Guid walletId)
        {
            var type = DBConstant.GetDescription(DBConstant.ETransactionType.Interest_Return);

            return(_uow.Repository <WalletTransaction>().GetAsQueryable(filter: x => x.WalletId == walletId && x.TransactionType == type).Sum(x => x.Credit));
        }