public override bool Buscar(int IdBuscado)
{
DataTable dt = new DataTable();
dt = con.ObtenerDatos(String.Format("Select * from Miembros where MiembroId = {0}", IdBuscado));
if (dt.Rows.Count > 0)
{
this.MiembroId = (int)dt.Rows[0]["MiembroId"];
this.Nombre = dt.Rows[0]["Nombre"].ToString();
this.Apellidos = dt.Rows[0]["Apellidos"].ToString();
this.Parentesco = dt.Rows[0]["Parentesco"].ToString();
this.esActivo = (int)dt.Rows[0]["esActivo"];
this.UsuarioId = (int)dt.Rows[0]["UsuarioId"];
}
return dt.Rows.Count > 0;
}