Exemple #1
0
        public static DTO.PricingResultDriverGroup ToDto(this Display.PricingResultDriverGroup displayEntity)
        {
            var dto = new DTO.PricingResultDriverGroup(
                displayEntity.Id,
                displayEntity.Value,
                displayEntity.MinOutlier,
                displayEntity.MaxOutlier,
                displayEntity.Sort,
                displayEntity.Name,
                displayEntity.Title,
                displayEntity.Actual,
                displayEntity.SkuCount,
                displayEntity.SalesValue);

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

            displayEntity.Id         = dto.Id;
            displayEntity.Value      = dto.Value;
            displayEntity.MinOutlier = dto.MinOutlier;
            displayEntity.MaxOutlier = dto.MaxOutlier;
            displayEntity.Sort       = dto.Sort;
            displayEntity.Name       = dto.Name;
            displayEntity.Title      = dto.Title;
            displayEntity.Actual     = dto.Actual;

            displayEntity.SkuCount   = dto.SkuCount;
            displayEntity.SalesValue = dto.SalesValue;

            return(displayEntity);
        }