protected void btnRegister_Click(object sender, EventArgs e) { EntClsCustomer obj_customer = new EntClsCustomer(); BsnClsCustomer bsn_customer = new BsnClsCustomer(); obj_customer = bsn_customer.CustomerSearch(textIdentificationCard.Text); if (obj_customer.IdentificationCard == null) { if (cedulavalidation(textIdentificationCard.Text)) { bsn_customer.RegisterCustomer(textIdentificationCard.Text, textName.Text, textLastName.Text, textphone.Text, textCelphone.Text, textAddres.Text, textMail.Text); clear(); } else { errorCiNonV(); } } else { errorExistCus(); } }