コード例 #1
0
        public IActionResult Index()
        {
            var model = _studentCourses.ReadAll()
                        .Select(sc => new StudentCourseVM
            {
                ENumber        = sc.Student.ENumber,
                FullName       = sc.Student.LastName + ", " + sc.Student.FirstName,
                FullCourseCode = sc.Course.Code + sc.Course.Number
            });

            return(View(model));
        }