Exemple #1
0
 public void MapFrom(CallRecord source)
 {
     Customer = source?.Customer?.MapTo(x => new CustomerDTO());
     User     = source?.User?.MapTo(x => new UserDTO());
 }
Exemple #2
0
 public void MapFrom(Customer source)
 {
     Orders   = source?.Orders?.MapAllTo(x => new OrderDTO());
     PreUser  = source?.PreUser?.MapTo(x => new UserDTO());
     PostUser = source?.PostUser?.MapTo(x => new UserDTO());
 }