public ActionResult AddCourse() { CourseDBHandler dbHandler = new CourseDBHandler(); //Sends all majors to populate the dropdown return(View(dbHandler.GetAllMajors())); }
public ActionResult ListMajors() { List <Major> majors = new List <Major>(); CourseDBHandler handler = new CourseDBHandler(); majors = handler.GetAllMajors(); return(View(majors)); }