public List<TeacherEN> GetTeacherList() { List<TeacherEN> aList = new List<TeacherEN>(); foreach (var temp in aTeacherBO.Select_All()) { TeacherEN aTeacherEN = new TeacherEN(); aTeacherEN.SetValue(temp); aList.Add(aTeacherEN); } return aList; }
private List<TeacherEN> GetListDataByName(string name) { List<TeacherEN> aListTeacher = new List<TeacherEN>(); TeacherBO aTeacherBO = new TeacherBO(); foreach (var temp in aTeacherBO.Select_ByName(name)) { TeacherEN aTeacherEN = new TeacherEN(); aTeacherEN.SetValue(temp); aListTeacher.Add(aTeacherEN); } return aListTeacher; }
private List<TeacherEN> GetListDataByID(int id) { List<TeacherEN> aListTeacher = new List<TeacherEN>(); TeacherBO aTeacherBO = new TeacherBO(); foreach (var temp in aTeacherBO.Select_ById(id)) { TeacherEN aTeacherEN = new TeacherEN(); aTeacherEN.SetValue(temp); aListTeacher.Add(aTeacherEN); } return aListTeacher; }