protected void BtnTerminar_Click(object sender, EventArgs e) { Controlador.ControladorTareas AuxControladorTarea = new Controlador.ControladorTareas(); if (TXTBuscar.Text.Trim() == string.Empty) { TXTBuscar.BorderColor = System.Drawing.Color.Red; AlertaID.Visible = true; } else { if (AuxControladorTarea.verificarTarea(Convert.ToInt32(TXTBuscar.Text))) { AlertaIDNoExiste.Visible = false; TXTBuscar.BorderColor = System.Drawing.Color.Green; AlertaID.Visible = false; int idrecibido = Convert.ToInt32(TXTBuscar.Text); AuxControladorTarea.TerminarTarea(idrecibido); ListarTarea(); } else { TXTBuscar.BorderColor = System.Drawing.Color.Red; AlertaIDNoExiste.Visible = true; ListarTarea(); } } }