public decimal? GetAmount(DE3_AccountType accountType, DE54_AmountTypeCode amountType) { DE54_AdditionalAmount entity = Get(accountType, amountType); if (entity != null) { return entity.Amount; } return 0; }
public void Put(DE54_AmountTypeCode amountType, DE3_AccountType accountType, Iso4217_CurrencyCode currencyCode, decimal? amount) { DE54_AdditionalAmount entry = new DE54_AdditionalAmount(); entry.AccountType = accountType; entry.AmountType = amountType; entry.CurrencyCode = currencyCode; entry.Amount = amount; Put(entry); }
public DE54_AdditionalAmount Get(DE3_AccountType accountType, DE54_AmountTypeCode amountType) { if (amountMap.ContainsKey(accountType)) { Dictionary<DE54_AmountTypeCode, DE54_AdditionalAmount> amounts = amountMap[accountType]; if (amounts.ContainsKey(amountType)) { return amounts[amountType]; } return null; } return null; }