Exemple #1
0
        public static Display.FilterValue ToDisplayEntity(this Client.Filter.Value dto)
        {
            var result = new Display.FilterValue();

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

            return(result);
        }
        public static Client.Filter.Value ToDTO(this Display.FilterValue displayEntity)
        {
            var result = new APLPX.Client.Entity.Filter.Value
                         (
                displayEntity.Id,
                displayEntity.Key,
                displayEntity.Code,
                displayEntity.Name,
                displayEntity.IsSelected
                         );

            return(result);
        }