コード例 #1
0
 public virtual CurrencyEntity FromModel(Core.Currency.Currency currency)
 {
     Code             = currency.Code;
     Name             = currency.Name;
     IsPrimary        = currency.IsPrimary;
     ExchangeRate     = currency.ExchangeRate;
     Symbol           = currency.Symbol;
     CustomFormatting = currency.CustomFormatting;
     return(this);
 }
コード例 #2
0
 public virtual Core.Currency.Currency ToModel(Core.Currency.Currency currency)
 {
     currency.Code             = Code;
     currency.Name             = Name;
     currency.IsPrimary        = IsPrimary;
     currency.ExchangeRate     = ExchangeRate;
     currency.Symbol           = Symbol;
     currency.CustomFormatting = CustomFormatting;
     return(currency);
 }