示例#1
0
        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);
        }
示例#2
0
        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);
        }