Exemple #1
0
        public ActionResult EditGroup(string id)
        {
            var groupRaw = groupsManager.GetById(id);

            if (groupRaw == null)
            {
                return(RedirectToRoute("NotFound"));
            }

            var group = Mapper.Map <GroupEditViewModel, Group>(groupRaw);

            return(View(new GroupEditPageView(group)));
        }
        public ActionResult SchedulePDF(string id)
        {
            var group   = manager.GetById(id);
            var shedule = group.Schedule.DeserializeAs <Schedule>();

            return(View(shedule));
        }