Beispiel #1
0
        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);
        }
Beispiel #2
0
        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");
        }