protected void btnAdd_Click(object sender, EventArgs e)
    {
        Customer customer = customerProvider.Get(txtBarcode.Text);

        if (customer != null)
        {
            try
            {
                classProvider.AddParticipant(
                    Convert.ToInt32(ViewState["ClassRunningID"]),
                    customer.ID);
                gvwData.DataBind();
                txtBarcode.Text = String.Empty;
                CountTotalParticipants();
            }
            catch (Exception ex)
            {
                WebFormHelper.SetLabelTextWithCssClass(lblMessage3, ex.Message, LabelStyleNames.ErrorMessage);
            }
        }
    }