public ActionResult TakeStudyGrade(int gradeId, int schoolId) { StudySubjectViewModel model = new StudySubjectViewModel() { UniversityId = schoolId, StudySubjects = _schoolService.GetAllStudySubjectsFromGrade(gradeId).ToList() }; return PartialView("~/Views/Partials/Management/TakeStudySubject.cshtml", model); }
public ActionResult DefineStudySubjects(int gradeId, int schoolId) { // Get all STUDY!!! Subjects from database var school = _schoolService.GetSchoolById(schoolId); var gradeStudySubjects = _schoolService.GetAllStudySubjectsFromGrade(gradeId); StudySubjectViewModel model = new StudySubjectViewModel() { UniversityId = school.SchoolId, UniversityDescription = school.Description, GradeId = gradeId, StudySubjects = gradeStudySubjects.ToList() }; return PartialView("~/Views/Partials/Management/StudySubjectList.cshtml", model); }