// GET: Teacher
        public async Task <IActionResult> IndexAsync()
        {
            IEnumerable <Teacher> model = await teacherRepo.GetAllAsync();

            return(View(model));
        }
Пример #2
0
 // GET: Teacher
 public async Task <ActionResult> Index()
 {
     return(View(await _teacherRepo.GetAllAsync()));
 }