//Function 2)AddContact - add single user to contact list public void addContact(User contact) { //AppController gets given email string, looks in database for user retrieves it and calls this function Contacts.Add(contact); foreach (Wishlist w in contact.MyWishlists) { OthersWishlists.Add(w); } }
//Function 2)AddContact - add single user to contact list public void addContact(User contact) { //AppController gets given email string, looks in database for user retrieves it and calls this function //Contacts.Add(contact); foreach (Wishlist w in contact.MyWishlists) { OthersWishlists.Add(w); } //!!!!Make sure that when we add contact it is added to the DbContext, + Added to observable list, (should reload correctly on page reload) }