public IQueryable<ContactInformation> searchByPhone(string phone, int userID) { LINQDatabaseService ds = new LINQDatabaseService(); if (ds.phoneExists(phone, userID) == true) return ds.getContact(new string[] { phone }, "Phone", userID); return null; }
public IQueryable<ContactInformation> searchByFullName(string firstName, string lastName, int userID) { LINQDatabaseService ds = new LINQDatabaseService(); if (ds.fullNameExists(firstName, lastName, userID) == true) return ds.getContact(new string[] {firstName, lastName}, "Name", userID); return null; }