예제 #1
0
        public static DTO.PriceOptimizationRule ToDto(this Display.PriceOptimizationRule displayEntity)
        {
            var dto = new DTO.PriceOptimizationRule(
                displayEntity.Id,
                displayEntity.DollarRangeLower,
                displayEntity.DollarRangeUpper,
                displayEntity.PercentChange);

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

            displayEntity.Id = dto.Id;
            displayEntity.DollarRangeLower = dto.DollarRangeLower;
            displayEntity.DollarRangeUpper = dto.DollarRangeUpper;
            displayEntity.PercentChange    = dto.PercentChange;

            return(displayEntity);
        }