コード例 #1
0
ファイル: ResultController.cs プロジェクト: jjoylee/CanYou
        //
        // 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());
        }
コード例 #2
0
 public ActionResult Type()
 {
     IList<LectureTypeRequirementItem> list = LectureTypeRequirementDao.FindByAccountId(accountItem.Id);
     ViewBag.list = list;
     return View();
 }