public CurrencyRateModel(Data.Entities.CurrencyRateEntity currencyRate) { this.FromCurrency = new Lookups.CurrencyLookup().GetItemFromLookup(currencyRate.FromCurrency); this.ToCurrency = new Lookups.CurrencyLookup().GetItemFromLookup(currencyRate.ToCurrency); this.Rate = currencyRate.Rate; this.LastUpdatedOn = currencyRate.LastUpdated; }
private CurrencyRateModel CreateRateModel(Data.Entities.CurrencyRateEntity crEntity) { if (crEntity == null) { return(null); } return(new CurrencyRateModel(crEntity)); }