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