public Facture(FactureDTO factureDTO) { code = factureDTO.code; client = factureDTO.client; dateEmission = factureDTO.dateEmission; dateReglement = factureDTO.dateReglement; montantDu = factureDTO.montantDu; montantRegle = factureDTO.montantRegle; }
public void addFac(FactureDTO factureDTO) { Facture fac = new Facture(factureDTO); this.listeFactures.Add(fac); foreach (var f in listeFactures) { Console.WriteLine(f.code); } }