public bool Buscar(int Id)
{
bool mensaje = false;
DataTable dt;
dt = conexion.BuscarDb("select * from Tareas where IdTarea = " + Id);
if (dt.Rows.Count > 0)
{
mensaje = true;
DataRow row = dt.Rows[0];
this.IdTarea = (int)row["IdTarea"];
this.CodigoTarea = (string)row["CodigoTarea"];
this.Fecha = (DateTime)row["Fecha"];
this.Vence = (DateTime)row["Vence"];
this.IdSemestre = (int)row["IdSemestre"];
this.IdAsignatura = (int)row["IdAsignatura"];
this.Descripcion = (string)row["Descripcion"];
this.ResultadoEsperado = (string)row["ResultadoEsperado"];
}
return mensaje;
}