protected void SearchCustomer()

in Source/Website/Default.aspx.cs [112:132]


        protected void SearchCustomer(object sender, EventArgs e)
        {
            var customer = CustomerData.GetCustomerByEmailOrName(SearchTextBox.Text);

            if (customer != null)
            {
                MapCustomer(customer);
                spanCustomer.Visible = true;
                spanCustomer2.Visible = true;
                spanNotFound.Visible = false;
            }
            else
            {
                spanCustomer.Visible = false;
                spanCustomer2.Visible = false;
                spanNotFound.Visible = true;
            }

            RandomizeOrderHistory();
            SearchTextBox.Text = string.Empty;            
        }