private void ProspectusList_Load(object sender, EventArgs e) { ISubjectService ssR = new SubjectService(); if (zGradeLevel == "0") subj = new List<Subject>(ssR.GetAllSubjects()); else subj = new List<Subject>(ssR.GetAllSubjectsOfGradeLevel(zGradeLevel)); gridView.DataSource = subj; }
public List<CurriculumSubject> GetAllSubjectsOfGradeLevel(string gradeLevel) { SubjectService ss = new SubjectService(); List<CurriculumSubject> csList = new List<CurriculumSubject>(); List<Subject> sList = new List<Subject>(); sList = ss.GetAllSubjectsOfGradeLevel(gradeLevel); foreach (Subject s in sList) { CurriculumSubject cs = new CurriculumSubject(); TranslateCurrSub(s, cs); csList.Add(cs); } return csList; }
public List <CurriculumSubject> GetAllSubjectsOfGradeLevel(string gradeLevel) { SubjectService ss = new SubjectService(); List <CurriculumSubject> csList = new List <CurriculumSubject>(); List <Subject> sList = new List <Subject>(); sList = ss.GetAllSubjectsOfGradeLevel(gradeLevel); foreach (Subject s in sList) { CurriculumSubject cs = new CurriculumSubject(); TranslateCurrSub(s, cs); csList.Add(cs); } return(csList); }
public List <Subject> GetAllSubjectsOfGradeLevel(string gradeLevel) { SubjectService ss = new SubjectService(); return(ss.GetAllSubjectsOfGradeLevel(gradeLevel)); }
public List<Subject> GetAllSubjectsOfGradeLevel(string gradeLevel) { SubjectService ss = new SubjectService(); return ss.GetAllSubjectsOfGradeLevel(gradeLevel); }