External C# Function: BaileyWeb.University.Data.Courses
The External C# Function class Courses contains the following public 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
Public Methods
Method: | Description: | Output type: |
---|---|---|
ListCourses() |
Outputs a collection of flat record nodes. Used to show a list of courses on the website. | XElement |
ListCoursesEnumerable() |
Outputs a collection of flat record nodes. Used to show a list of courses on the website, or for searches. | IEnumerable<XElement> |
ListCoursesFromCSV(string CoursesCSV) |
Outputs a collection of flat record nodes from a CSV list of GUID Id values. Used to show sub-lists of courses within a record page on the website. | XElement |
ListCoursesFromEducationLevelId(Guid? EducationLevelId) |
Outputs a collection of flat record nodes from a GUID Id value. Used to show sub-lists of courses within a record page on the website. | XElement |
ListCoursesFromSubjectId(Guid SubjectId) |
Outputs a collection of flat record nodes from a GUID Id value. Used to show sub-lists of courses within a record page on the website. | XElement |
GetCourseConcise(Guid CourseId) |
Outputs a single flat record node. May only contain key fields from the record. Used to show sub-record of a course within a record page on the website. | XElement |
GetCourseFull(Guid CourseId) |
Outputs a single nested record node. Contains all fields from the record, with Data References often shown in sub-nodes. Used to show record of a course on the website. | XElement |
AssembleCourseTitle(string CourseAwardTitle, string CourseSubject1, string CourseSubject2, string StartDateShort) |
Combines input parameters and outputs the title of a course. | String |
AssembleCourseTitle(string CourseSubject1, string CourseSubject2) |
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 |