예제 #1
0
        public void AddContact(string name, string number)
        {
            Contact contact = new Contact(name, number);

            _contacts.Add(contact);
            DatabaseStore.SaveDataToDatabase(contact);
        }
예제 #2
0
 public ContactManager()
 {
     _contacts = DatabaseStore.GetDataFromDatabase();
 }