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); }
public Student[] getListStudentByClass(Lop lop) { return(studentDAL.getAllStudents().Where(item => item.ID_Lop == lop.IDLop).ToArray()); }