public async Task <IActionResult> Index() { var allSubjects = await subjectRepo.GetAllAsync(); return(View(allSubjects)); }
public async Task <IEnumerable <Subject> > GetAllSubjects() { return(await _repo.GetAllAsync()); }