コード例 #1
0
ファイル: FinancialService.cs プロジェクト: AaronTee/FIX
        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));
        }
コード例 #2
0
ファイル: FinancialService.cs プロジェクト: AaronTee/FIX
        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));
        }