Пример #1
0
        public static DTO.PricingResultEdit ToDto(this Display.PricingResultEdit displayEntity)
        {
            var dto = new DTO.PricingResultEdit(
                displayEntity.Name,
                displayEntity.Title,
                displayEntity.Type);

            return(dto);
        }
Пример #2
0
        public static Display.PricingResultEdit ToDisplayEntity(this DTO.PricingResultEdit dto)
        {
            var displayEntity = new Display.PricingResultEdit();

            displayEntity.Name  = dto.Name;
            displayEntity.Title = dto.Title;
            displayEntity.Type  = dto.Type;

            return(displayEntity);
        }
 public PricingEverydayResultPriceList()
 {
     PriceEdit    = new PricingResultEdit();
     PriceWarning = new PricingResultWarning();
 }