public void MapFrom(CallRecord source) { Customer = source?.Customer?.MapTo(x => new CustomerDTO()); User = source?.User?.MapTo(x => new UserDTO()); }
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()); }