Example #1
0
        public static DTO.PricingMode ToDto(this Display.PricingMode displayEntity)
        {
            var dto = new DTO.PricingMode(
                displayEntity.Key,
                displayEntity.Name,
                displayEntity.Title,
                displayEntity.IsSelected,
                displayEntity.HasKeyPriceListRule,
                displayEntity.HasLinkedPriceListRule,
                displayEntity.KeyPriceListGroupKey,
                displayEntity.LinkedPriceListGroupKey,
                displayEntity.Sort);

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

            displayEntity.Key                     = dto.Key;
            displayEntity.Name                    = dto.Name;
            displayEntity.Title                   = dto.Title;
            displayEntity.IsSelected              = dto.IsSelected;
            displayEntity.HasKeyPriceListRule     = dto.HasKeyPriceListRule;
            displayEntity.HasLinkedPriceListRule  = dto.HasLinkedPriceListRule;
            displayEntity.KeyPriceListGroupKey    = dto.KeyPriceListGroupKey;
            displayEntity.LinkedPriceListGroupKey = dto.LinkedPriceListGroupKey;
            displayEntity.Sort                    = dto.Sort;

            return(displayEntity);
        }