public override void ConvertFromEntity(CurrencyLog entity) { base.ConvertFromEntity(entity); this.Rate = entity.Rate; this.CurrencyId = entity.Currency == null ? 0 : entity.Currency.Id; if (entity.Currency != null) { this.Currency = new CurrencyDTO(entity.Currency); } }
public void ConvertFromLogEntity(Currency entity) { this.Rate = entity.Rate; this.CurrencyId = entity.Id; this.Currency = new CurrencyDTO(entity); }