public async Task <IActionResult> Index() { var model = new IndexViewModel { Subjects = await _subjectsRepository.GetAllAsync() }; return(View(model)); }
public async Task <IEnumerable <Subject> > GetAllAsync() { return(await subjectsRepository.GetAllAsync()); }