void IContactRepository.AddContact(Contact c)
 {
     contactDB.Contacts.Add(c);
     contactDB.SaveChanges();
 }
Exemple #2
0
 void IAddressRepository.AddAddress(Contact contact, Address address)
 {
     contact.Address.Add(address);
     address.Contact = contact;
     addressDB.SaveChanges();
 }