Ejemplo n.º 1
0
        public Lop[] getListLop()
        {
            string    sqlCmd = "SELECT * FROM Lop";
            DataTable d      = DBHelper.DBExcuteQuery(sqlCmd);
            int       count  = d.Rows.Count;

            Lop[] results = new Lop[count];

            for (int i = 0; i < count; i++)
            {
                results[i] = GetLopFromDataRow(d.Rows[i]);
            }

            return(results);
        }
Ejemplo n.º 2
0
 public Student[] getListStudentByClass(Lop lop)
 {
     return(studentDAL.getAllStudents().Where(item => item.ID_Lop == lop.IDLop).ToArray());
 }