Beispiel #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));
        }
Beispiel #2
0
        public IActionResult Branch()
        {
            branchList      = _IRedisCacheService.GetBranchs();
            ViewBag.Branchs = branchList;

            BranchViewModel viewModel = new BranchViewModel();

            return(View(viewModel));
        }