async protected void btnIngresar_Click(object sender, EventArgs e)
        {
            try
            {
                if (ValidarInsertar())
                {
                    Models.Alquiler alquilerIngresado = new Models.Alquiler();
                    Models.Alquiler alquiler          = new Models.Alquiler()
                    {
                        ALQ_ID             = Convert.ToInt32(txtALQ_ID.Text),
                        USU_CODIGO         = Convert.ToInt32(txtUSU_CODIGO.Text),
                        VEH_ID             = Convert.ToInt32(txtVEH_ID.Text),
                        PAGO_ID            = Convert.ToInt32(txtPAGO_ID.Text),
                        ALQ_FECHA_ENTREGA  = calFecEntrega.SelectedDate,
                        ALQ_FECHA_ALQUILER = calFecAlquiler.SelectedDate,
                        ALQ_PRECIOXHORA    = Convert.ToInt32(txtPrecio.Text)
                    };

                    alquilerIngresado = await alquilerManager.Ingresar(alquiler, Session["TokenUsuario"].ToString());

                    if (alquilerIngresado != null)
                    {
                        lblResultado.Text      = "Alquiler ingresado correctamente";
                        lblResultado.ForeColor = Color.Green;
                        lblResultado.Visible   = true;
                        InicializarControles();
                    }
                    else
                    {
                        lblResultado.Text      = "Error al crear el alquiler";
                        lblResultado.ForeColor = Color.Maroon;
                        lblResultado.Visible   = true;
                    }
                }
            }
            catch (Exception exc)
            {
                lblResultado.Text      = "Hubo un error al ingresar el alquiler. Detalle: " + exc.Message;
                lblResultado.ForeColor = Color.Maroon;
                lblResultado.Visible   = true;
            }
        }
        async protected void btnModificar_Click(object sender, EventArgs e)
        {
            if (ValidarInsertar() && (!string.IsNullOrEmpty(txtALQ_ID.Text)))
            {
                Models.Alquiler alquilerModificado = new Models.Alquiler();
                Models.Alquiler alquiler           = new Models.Alquiler()
                {
                    ALQ_ID             = Convert.ToInt32(txtALQ_ID.Text),
                    USU_CODIGO         = Convert.ToInt32(txtUSU_CODIGO.Text),
                    VEH_ID             = Convert.ToInt32(txtVEH_ID.Text),
                    PAGO_ID            = Convert.ToInt32(txtPAGO_ID.Text),
                    ALQ_FECHA_ENTREGA  = calFecEntrega.SelectedDate,
                    ALQ_FECHA_ALQUILER = calFecAlquiler.SelectedDate,
                    ALQ_PRECIOXHORA    = Convert.ToInt32(txtPrecio.Text)
                };

                alquilerModificado = await alquilerManager.Actualizar(alquiler, Session["TokenUsuario"].ToString());

                if (alquilerModificado != null)
                {
                    lblResultado.Text      = "Alquiler actualizado correctamente";
                    lblResultado.ForeColor = Color.Green;
                    lblResultado.Visible   = true;
                    InicializarControles();
                }
                else
                {
                    lblResultado.Text      = "Error al actualizar el alquiler";
                    lblResultado.ForeColor = Color.Maroon;
                    lblResultado.Visible   = true;
                }
            }
            else
            {
                lblResultado.Text      = "Debe ingresar todos los datos";
                lblResultado.ForeColor = Color.Maroon;
                lblResultado.Visible   = true;
            }
        }