External C# Function: BaileyWeb.University.Data.Courses

The External C# Function Courses class contains methods used across the Inline C# Functions related to the output of course data (Page Datafolder BaileyWeb.University.Courses) as XML.

Files

The following files are supplied with the University Package:

  • ~/App_Code/BaileyWeb/University/Data/Courses.cs

Methods

Method: Description: Output type:
GetCoursesListLong(string CoursesCSV) From a comma-separated values list of Course.Id GUID values, outputs a collection of XML nodes containing full data for specified courses. XElement
GetCoursesListShort(string CoursesCSV) From a comma-separated values list of Course.Id GUID values, outputs a collection of XML nodes containing concise data for specified courses. XElement
GetCoursesBySubjectQueryShort(Guid SubjectId) From a Subject.Id GUID value, outputs a collection of XML nodes containing concise data for all courses that include the specified subject. XElement
AssembleCourseTitle(string CourseAwardTitle, string CourseSubject1, string CourseSubject2, string StartDateShort) Combines input parameters and outputs the title of a course. String
AssembleCourseURL(DateTime StartDate, string CourseCode) Combines input parameters and outputs the URL of a course. String

Updated: 18 March 2020