示例#1
0
        public IActionResult Instructor()
        {
            _IRedisCacheService.GetBranchs().ForEach(x => instructorViewModel.selectList.Add(new SelectListItem(x.name, x.id.ToString())));
            instructorList     = _IRedisCacheService.GetInstructors();
            ViewBag.Instructor = instructorList;

            ViewBag.branchList = branch_TeacherManager.List();
            ViewBag.LessonList = _IRedisCacheService.GetLessons();

            return(View(instructorViewModel));
        }
示例#2
0
        public IActionResult selectLesson()
        {
            List <Teacher> model = _IRedisCacheService.GetInstructors();

            return(View(model));
        }