Ejemplo n.º 1
0
        protected void btnDeleteC_Click(object sender, EventArgs e)
        {
            int id = Int32.Parse(txtId.Text);


            logicaConductor negocioBorrarConductor = new logicaConductor();

            int resultadoBorrarConductor = negocioBorrarConductor.NegociarBorrarTipoConductor(id);

            if (resultadoBorrarConductor > 0)
            {
                lblMensaje.Text = "Registro Eliminado Exitosamente";
            }
            else
            {
                lblMensaje.Text = "No se pudo eliminar el registro";
            }

            negocioBorrarConductor = null;
        }