Ejemplo n.º 1
0
        public static Display.PriceListValue ToDisplayEntity(this Client.PriceList.Value dto)
        {
            var result = new Display.PriceListValue();

            result.Id         = dto.Id;
            result.Key        = dto.Key;
            result.Code       = dto.Code;
            result.Name       = dto.Name;
            result.IsSelected = dto.Included;

            return(result);
        }
Ejemplo n.º 2
0
        public static Client.PriceList.Value ToDTO(this Display.PriceListValue displayEntity)
        {
            var result = new Client.PriceList.Value
                         (
                displayEntity.Id,
                displayEntity.Key,
                displayEntity.Code,
                displayEntity.Name,
                displayEntity.IsSelected
                         );

            return(result);
        }