Example #1
0
        public static DTO.ValueDriverGroup ToDto(this Display.ValueDriverGroup displayEntity)
        {
            var dto = new DTO.ValueDriverGroup(
                displayEntity.Id,
                displayEntity.Value,
                displayEntity.MinOutlier,
                displayEntity.MaxOutlier,
                displayEntity.Sort);

            return(dto);
        }
Example #2
0
        public static Display.ValueDriverGroup ToDisplayEntity(this DTO.ValueDriverGroup dto)
        {
            var displayEntity = new Display.ValueDriverGroup();

            displayEntity.Id         = dto.Id;
            displayEntity.Value      = dto.Value;
            displayEntity.MinOutlier = dto.MinOutlier;
            displayEntity.MaxOutlier = dto.MaxOutlier;
            displayEntity.Sort       = dto.Sort;

            return(displayEntity);
        }