public void AddContact(string name, string number) { Contact contact = new Contact(name, number); _contacts.Add(contact); DatabaseStore.SaveDataToDatabase(contact); }
public ContactManager() { _contacts = DatabaseStore.GetDataFromDatabase(); }