public static Synchronization ToSynchronization(this SynchronizationDto dto) { var s = new Synchronization { CreationTime = dto.CreationTime, Id = dto.Id, Mirror = dto.Mirror.ToMirror(), Status = dto.Status }; return(s); }
public static SynchronizationDto ToDto(this ISynchronization sync) { var s = new SynchronizationDto { CreationTime = sync.CreationTime, Id = sync.Id, Mirror = sync.Mirror.ToDto(), Status = sync.Status }; return(s); }