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)); }
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)); }