Esempio n. 1
0
        public ActionResult List()
        {
            IList <LectureDetailItem> list = LectureDetailDao.FindByAccountId(accountItem.Id);

            ViewBag.list = list;
            return(View());
        }
Esempio n. 2
0
        //
        // 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());
        }