public ActionResult GetSideNav(int groupId) { var group = GroupManagementService.GetGroup(groupId); var subjects = SubjectManagementService.GetGroupSubjects(groupId); var model = new ParentalViewModel(group) { Subjects = subjects }; return(PartialView("_ParentalSideNavPartial", model)); }
public ActionResult Index(string id) { var group = GroupManagementService.GetGroupByName(id); if (group != null) { var model = new ParentalViewModel() { Group = group }; return(View(model)); } return(RedirectToAction("GroupNotFound")); }