Beispiel #1
0
        public static DTO.PricingEverydayLinkedValueDriverGroup ToDto(this Display.PricingEverydayLinkedValueDriverGroup displayEntity)
        {
            var dto = new DTO.PricingEverydayLinkedValueDriverGroup(
                displayEntity.ValueDriverGroupId,
                (int)displayEntity.PercentChange);

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

            displayEntity.ValueDriverGroupId = dto.ValueDriverGroupId;
            displayEntity.PercentChange      = dto.PercentChange;

            return(displayEntity);
        }