Esempio n. 1
0
 //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);
     }
 }
Esempio n. 2
0
        //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)
        }