public SectionModel[] Get(int id)
        {
            var dbm = new DatabaseManager();
            var sectionList = dbm.GetSections(id);

            return sectionList.ToArray();
        }
        public CourseModel[] Get()
        {
            var dbm = new DatabaseManager();
            var courseList = dbm.GetAllCourses();

            return courseList.ToArray();
        }
 public void Post([FromBody]ProfessorModel professor)
 {
     {
         var dbm = new DatabaseManager();
         dbm.AddProfessor(professor.Professor_Name, professor.username, professor.password);
     }
 }
 public void Post([FromBody]BuildingModel building)
 {
     {
         var dbm = new DatabaseManager();
         dbm.AddBuilding(building.Building_Name);
     }
 }
        public BuildingModel[] Get()
        {
            var dbm = new DatabaseManager();
            var buildingList = dbm.GetAllBuildings();

            return buildingList.ToArray();
        }
        public SectionModel[] Get(int id, int id2)
        {
            var dbm = new DatabaseManager();
            var professorCourses = dbm.GetProfessorCourses(id2);

            return professorCourses.ToArray();

        }
        public SectionModel[] Get(int id)
        {
            var dbm = new DatabaseManager();
            var studentCourses = dbm.GetStudentCourses(id);

            return studentCourses.ToArray();

        }
        public ProfessorModel Get(string username)
        {
            var dbm = new DatabaseManager();
            var professor = dbm.GetProfessorUser(username);

            return professor;

        }
        public ProfessorModel[] Get()
        {
            var dbm = new DatabaseManager();
            var professorList = dbm.GetAllProfessors();

            return professorList.ToArray();

        }
        public StudentModel Get(string username)
        {
            var dbm = new DatabaseManager();
            var student = dbm.GetStudentUser(username);

            return student;

        }
        public StudentModel[] Get()
        {
            var dbm = new DatabaseManager();
            var studentList = dbm.GetAllStudents();

            return studentList.ToArray();

        }
 public void Post([FromBody]SectionModel section)
 {
     var dbm = new DatabaseManager();
     dbm.AddSection(section.Section_Name, section.Course_Database_ID, section.Building_ID, section.Time);
 }
 public void Post([FromBody]CourseModel course)
 {
     var dbm = new DatabaseManager();
     dbm.AddCourse(course.Course_Name, course.Course_Catalog_ID, course.Professor_ID);
 }
 public void Post([FromBody]StudentModel student)
 {
     var dbm = new DatabaseManager();
     dbm.AddStudent(student.First_Name, student.Last_Name, student.User, student.Password);
 }