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)); }
public IActionResult selectLesson() { List <Teacher> model = _IRedisCacheService.GetInstructors(); return(View(model)); }