public ActionResult SetRelation()
        {
            string examId        = Request.QueryString["examId"];
            var    examViewModel = new ExamViewModel();

            examViewModel.ExamId = int.Parse(examId);
            var departs = _departmentInfoAppService.GetAllDepartmentInfos().OrderBy(p => p.Path).Select(p => new ComboboxItemDto(p.DepartmentId.ToString() + "," + p.DisplayName, new string(' ', p.Level * 2) + " " + p.DisplayName))
                          .ToList();

            examViewModel.departLists = departs;
            examViewModel.posts       = _jobPostAppService.GetAllJobPosts();
            examViewModel.classes     = _classesInfoAppService.GetAllClassesInfos();
            return(View("~/Areas/Admin/Views/ExamManage/SetRelation.cshtml", examViewModel));
        }
Beispiel #2
0
        // GET: Admin/Poll
        public ActionResult SetRetion(int pollId)
        {
            var pollViewModel = new PollViewModel();

            pollViewModel.PollId = pollId;

            var departs = _departmentInfoAppService.GetAllDepartmentInfos().OrderBy(p => p.Path).Select(p => new ComboboxItemDto(p.DepartmentId.ToString() + "," + p.DisplayName, new string(' ', p.Level * 2) + " " + p.DisplayName))
                          .ToList();

            pollViewModel.departLists = departs;

            pollViewModel.departs = _departmentInfoAppService.GetAllDepartmentInfos();
            pollViewModel.posts   = _jobPostAppService.GetAllJobPosts();
            pollViewModel.classes = _classesInfoAppService.GetAllClassesInfos();
            return(View(pollViewModel));
        }