Пример #1
0
        //à revoir
        public void SupprimerUnClient(int id)
        {
            var client = Client.Find(id);
            var ad     = Adresse.Find(id);
            var tel    = Telephones.Where(t => t.IdClient == id);
            var em     = Emails.Where(e => e.IdClient == id);

            Adresse.Remove(ad);
            Telephones.RemoveRange(tel);
            Emails.RemoveRange(em);
            Client.Remove(client);
        }
Пример #2
0
 public void AjoutAdresseClient(Adresse a)
 {
     Adresse.Add(a);
 }