// GET: Results/Create
 //Gets the create form.
 public IActionResult Create()
 {
     ViewData["CourseId"]  = new SelectList(_context.Course, "Id", "CourseName");
     ViewData["StudentId"] = new SelectList(_context.Set <Student>(), "Id", "StudentName");
     ViewData["Results"]   = new SelectList(Enum.GetValues(typeof(Grade)));
     return(View());
 }
 // GET: Enrollments/Create
 //Gets the Add enrollment form.
 public IActionResult Create()
 {
     ViewData["CourseId"]  = new SelectList(_context.Course, "Id", "CourseSerialId");
     ViewData["StudentId"] = new SelectList(_context.Set <Student>(), "Id", "StudentSerialId");
     ViewData["Semester"]  = new SelectList(Enum.GetValues(typeof(Semester)));
     return(View());
 }