Exemple #1
0
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            {
                int    id          = Int32.Parse(txtId.Text);
                string estacion    = txtestacion.Text;
                int    id_vehiculo = Int32.Parse(txtid_vehiculo.Text);



                logicaControladorRuta NegocioAgregarContrato = new logicaControladorRuta();


                //ATV (Agregar Vehiculo)
                int resultadoATV = NegocioAgregarContrato.negociarInsertgestionRUTA(id, estacion, id_vehiculo);

                if (resultadoATV > 0)
                {
                    lblMensaje.Text = "Registro agregado correctamente";
                }
                else
                {
                    lblMensaje.Text = "Error al agregar registro";
                }

                NegocioAgregarContrato = null;
            }
        }