public AdditionalAmount(AccountTypeEnum accountType, AmountTypeEnum amountType, string currencyCode, double amount) { this.AccountType = accountType; this.AmountType = amountType; this.CurrencyCode = currencyCode; this.Amount = amount; }
public AdditionalAmount GetAmount(AmountTypeEnum amountType) { foreach (AdditionalAmount current in this.Amounts) { if (current.AmountType == amountType) { return(current); } } return(null); }
public AdditionalAmount GetAmount(AmountTypeEnum amountType) { return(this.Amounts.GetAmount(amountType)); }