コード例 #1
0
        public IActionResult Index()
        {
            List <Student> students = StudentDb.GetStudents(context);

            return(View(students));
        }
コード例 #2
0
        public async Task <IActionResult> Index()
        {
            List <Student> students = await StudentDb.GetStudents(context);

            return(View(students));
        }