/// <summary>Gets a list of all of the Courses in the database which are associated with the Semester table via the ID column.</summary> /// <param name="semesterID">The ID of the Semester for which to retrieve the child Courses.</param> /// <returns>An IEnumerable of Courses.</returns> public IEnumerable <SO.Course> GetCoursesBySemesterID(int semesterID, int page) { IEnumerable <DA.Course> returnValue = CourseLogic.GetBySemesterID(semesterID); if (returnValue != null) { return(ServiceUtil.GetPage(returnValue, page).Select(o => SO.Course.FromDataAccessObject(o))); } return(null); }
/// <summary>Gets a list of all of the Courses in the database which are associated with the Semester table via the ID column.</summary> /// <param name="semesterID">The ID of the Semester for which to retrieve the child Courses.</param> /// <returns>An IEnumerable of Courses.</returns> public IEnumerable <SO.Course> GetCoursesBySemesterID(string semesterID, string page) { IEnumerable <DA.Course> returnValue = CourseLogic.GetBySemesterID(ParseInt("id", semesterID)); if (returnValue != null) { return(ServiceUtil.GetPage(returnValue, ParseInt("page", page)).Select(o => SO.Course.FromDataAccessObject(o))); } return(null); }
/// <summary>Gets how many Courses by SemesterID exist.<summary> public int GetCoursesBySemesterIDCount(int semesterID) { return(CourseLogic.GetBySemesterID(semesterID).Count()); }
/// <summary>Gets how many Courses by SemesterID exist.<summary> public int GetCoursesBySemesterIDCount(string semesterID) { return(CourseLogic.GetBySemesterID(ParseInt("semesterID", semesterID)).Count()); }