Пример #1
0
        public static DTO.PricingEverydayPriceList ToDto(this Display.PricingEverydayPriceList displayEntity)
        {
            var dto = new DTO.PricingEverydayPriceList(
                displayEntity.Id,
                displayEntity.Key,
                displayEntity.Code,
                displayEntity.Name,
                displayEntity.Sort,
                displayEntity.IsSelected,
                displayEntity.IsKey);

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

            displayEntity.Id         = dto.Id;
            displayEntity.Key        = dto.Key;
            displayEntity.Code       = dto.Code;
            displayEntity.Name       = dto.Name;
            displayEntity.Title      = dto.Title;
            displayEntity.Sort       = dto.Sort;
            displayEntity.IsSelected = dto.IsSelected;

            displayEntity.IsKey = dto.IsKey;

            return(displayEntity);
        }