Пример #1
0
        public static TypeBiere GetTypeBiere(this TypeBiereWPF wpf)
        {
            TypeBiere type = new TypeBiere();

            type.Def = wpf.typeBiereDefinition;
            type.Nom = wpf.typeBiereNom;
            type.Id  = wpf.typeBiereId;
            return(type);
        }
Пример #2
0
        public static TypeBiereWPF GetTypeBiereWPF(this TypeBiere vm)
        {
            TypeBiereWPF wpf = new TypeBiereWPF();

            wpf.typeBiereId         = vm.Id;
            wpf.typeBiereDefinition = vm.Def;
            wpf.typeBiereNom        = vm.Nom;
            return(wpf);
        }