public List<string> searchByFullName(string firstName, string lastName) { DatabaseService ds = new DatabaseService(); if (ds.fullNameExists(firstName, lastName) == true) return ds.getContact(new string[]{firstName, lastName}, "Name"); return null; }
public bool addContact(List<string> content) { DatabaseService ds = new DatabaseService(); if (ds.fullNameExists(content[0], content[1]) == false && ds.phoneExists(content[4]) == false && ds.saveContact(content) != 0) return true; else return false; }