示例#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();
 }