Beispiel #1
0
        public static DTO.PriceMarkupRule ToDto(this Display.PriceMarkupRule displayEntity)
        {
            var dto = new DTO.PriceMarkupRule(
                displayEntity.Id,
                displayEntity.DollarRangeLower,
                displayEntity.DollarRangeUpper,
                displayEntity.PercentLimitLower,
                displayEntity.PercentLimitUpper);

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

            displayEntity.Id = dto.Id;
            displayEntity.DollarRangeLower  = dto.DollarRangeLower;
            displayEntity.DollarRangeUpper  = dto.DollarRangeUpper;
            displayEntity.PercentLimitLower = dto.PercentLimitLower;
            displayEntity.PercentLimitUpper = dto.PercentLimitUpper;

            return(displayEntity);
        }