示例#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);
        }