private void Init() { BrasserieWPF wpf = Main.Data.DalBrasserie.Get().GetBrasserieWPF(); BrasserieId = wpf.brasserieId; MailInfon = wpf.mailInfon; MailRecrutement = wpf.mailRecrutement; NomBrasserie = wpf.nomBrasserie; BrasseriePresentation = wpf.brasseriePresentation; }
public static BrasserieWPF GetBrasserieWPF(this BrasserieDal dal) { BrasserieWPF wpf = new BrasserieWPF(); wpf.brasserieId = dal.brasserieId; wpf.brasseriePresentation = dal.brasseriePresentation; wpf.mailInfon = dal.mailInfon; wpf.mailRecrutement = dal.mailRecrutement; wpf.nomBrasserie = dal.nomBrasserie; return(wpf); }
public static BrasserieDal GetBrasserieDal(this BrasserieWPF wpf) { BrasserieDal dal = new BrasserieDal(); dal.brasserieId = wpf.brasserieId; dal.brasseriePresentation = wpf.brasseriePresentation; dal.mailInfon = wpf.mailInfon; dal.mailRecrutement = wpf.mailRecrutement; dal.nomBrasserie = wpf.nomBrasserie; return(dal); }
public static BrasserieWPF GetBrasserieWPF(this EditBrasserieVM vm) { BrasserieWPF wpf = new BrasserieWPF(); wpf.brasserieId = vm.BrasserieId; wpf.brasseriePresentation = vm.BrasseriePresentation; wpf.mailInfon = vm.MailInfon; wpf.mailRecrutement = vm.MailRecrutement; wpf.nomBrasserie = vm.NomBrasserie; return(wpf); }