// GET: CsteY4T2Students public ActionResult Cstey4t2students(string SubjectCode) { DataRetrive dataretrive = new DataRetrive(); List <CsteY4_T2_Students> cstey4t2students = dataretrive.Cstey4t2studens.Where(sc => sc.SubjectCode == SubjectCode).ToList(); return(View(cstey4t2students)); }
// GET: YearTerm public ActionResult YearTermList(int id) { DataRetrive dataretrive = new DataRetrive(); List <YearTerm> yearterms = dataretrive.YearTerms.Where(yt => yt.DeptId == id).ToList(); return(View(yearterms)); }
// GET: DeptList public ActionResult DeptList() { DataRetrive dataretrive = new DataRetrive(); List <Department> departments = dataretrive.Departments.ToList(); return(View(departments)); }
// GET: SubjectList public ActionResult Subjectlist(int Yid) { DataRetrive dataretrive = new DataRetrive(); List <SubjectList> subjectlists = dataretrive.Subjectlist.Where(sl => sl.YearTermId == Yid).ToList(); return(View(subjectlists)); }