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; }
public bool addContact(string txtFirstName, string txtLastname, string ddlTitle, string ddlAreaCode, string txtPhoneNumber, string txtAddress, string ddlState, string txtEmail, string txtComment, bool chkRemember, DateTime dob, int userID) { LINQDatabaseService ds = new LINQDatabaseService(); if (ds.fullNameExists(txtFirstName, txtLastname, userID) == false && ds.phoneExists(txtPhoneNumber, userID) == false && ds.saveContact( txtFirstName, txtLastname, ddlTitle, ddlAreaCode, txtPhoneNumber, txtAddress, ddlState, txtEmail, txtComment, chkRemember, dob, userID)) return true; else return false; }