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); }
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); }