public bool Buscar(int prmIdAsistencias)
{
DataTable Datos = new DataTable();
bool Retorno = false;
Datos = Conexion.BuscarDb("Select * from AsistenciasDetalle Where Id=" + prmIdAsistencias);
if (Datos.Rows.Count > 0)
{
Retorno = true;
this.Id = (int)Datos.Rows[0]["Id"];
this.IdAsistencia = (int)Datos.Rows[0]["IdAsistencia"];
this.IdEstudiante = (int)Datos.Rows[0]["IdEstudiante"];
this.Calificacion = (byte)Datos.Rows[0]["Calificacion"];
}
return Retorno;
}