コード例 #1
0
        public async Task <IActionResult> Index()
        {
            var allSubjects = await subjectRepo.GetAllAsync();

            return(View(allSubjects));
        }
コード例 #2
0
 public async Task <IEnumerable <Subject> > GetAllSubjects()
 {
     return(await _repo.GetAllAsync());
 }