Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 public void ConvertFromLogEntity(Currency entity)
 {
     this.Rate       = entity.Rate;
     this.CurrencyId = entity.Id;
     this.Currency   = new CurrencyDTO(entity);
 }