// // GET: /Result/ public ActionResult Index() { ResultService service = new ResultService(); service.CategoryRequirements = LectureCategoryRequirementDao.FindByAccountId(accountItem.Id); service.LectureDetails = LectureDetailDao.FindByAccountId(accountItem.Id); service.ScoreRequirement = ScoreRequirementDao.FindByAccountIdForCheck(accountItem.Id); service.SectionRequirement = SectionRequirementDao.FindByAccountIdForCheck(accountItem.Id); service.Sections = SectionDao.FindAll(); service.TypeRequirements = LectureTypeRequirementDao.FindByAccountId(accountItem.Id); ViewBag.Results = service.GetResults(); ViewBag.IsAllPassed = IsAllPassed(ViewBag.Results); return(View()); }
public ActionResult Type() { IList<LectureTypeRequirementItem> list = LectureTypeRequirementDao.FindByAccountId(accountItem.Id); ViewBag.list = list; return View(); }