public IActionResult OnGet()

        {
            Student = new CollegeCore.Student();


            AddSubject = subjectData.GetSubjects().Select(x => new SelectListItem
            {
                Selected = false,
                Value    = x.Id.ToString(),
                Text     = x.Name
            }).ToList();

            return(Page());
        }
Exemplo n.º 2
0
        public IActionResult OnGet()
        {
            Subjects = subjectData.GetSubjects();

            return(Page());
        }