예제 #1
0
        /// <summary>
        /// This method requires a course id and a student id to add a subscription entry to the database.
        /// </summary>
        /// <param name="courseId">The courseId</param>
        /// <param name="studentId">The studentId</param>
        /// <returns>Returns a bool whether it succeeded or not.</returns>
        public bool subscribeToNonSubscribedCourse(int courseId, int studentId)
        {
            QueryStrings queryStrings = new QueryStrings();

            return(queryStrings.addStudentToCourse(courseId, studentId));
        }