protected void CustomerRentalsLookupButton_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(CustomerPhoneLookupTextbox.Text) && string.IsNullOrEmpty(CustomerPhoneLookupTextbox.Text)) { MessageUserControl.ShowInfo("Enter Search Data", "You must enter at least a partial phone number and or email address to search for a customer"); } else { //GetCustomersByPhoneAndEmail(CustomerPhoneLookupTextbox.Text, CustomerEmailLookupTextbox.Text); MessageUserControl.TryRun(() => { RentalController sysmgr = new RentalController(); List <Customer> results = sysmgr.List_RentalsByCustomerPhone(CustomerPhoneLookupTextbox.Text); if (results.Count() == 0) { MessageUserControl.ShowInfo("No results, check your search criteria"); } CustomerList.DataSource = results; CustomerList.DataBind(); }); } }