public bool EnrollCourse(Student enrollCourse) { try { if (IsStudentEnrollCourseExist(enrollCourse)) { throw new Exception("Student already enrolled in this course."); } else { StudentGetway studentGetway = new StudentGetway(); return(studentGetway.EnrollCourse(enrollCourse)); } } catch (Exception) { throw; } }