public Abonnement Donner(int id) { gl.Abonnement x = _rep.Donner(id); Abonnement xx = x.VersClient(); return(xx); throw new NotImplementedException(); }
public static Abonnement VersClient(this gl.Abonnement e) { if (e == null) { return(null); } return(new Abonnement { id = e.id, actif = e.actif == 1 ? true : false, description = e.description, duree = e.duree, nom = e.nom, nombreMaxArbres = e.nombremaxarbres, nombreMaxPersonnes = e.nombremaxpersonnes, prix = e.prix }); }