External C# Function: BaileyWeb.University.Data.Subjects
The External C# Function class Subjects contains the following public methods used across the Inline C# Functions related to the output of subject data (Page Datafolder BaileyWeb.University.Subjects) as XML.
Files
The following files are supplied with the University Package:
- ~/App_Code/BaileyWeb/University/Data/Subjects.cs
Public Methods
Method: | Description: | Output type: |
---|---|---|
ListSubjects() |
Outputs a collection of flat record nodes. Used to show a list of subjects on the website. | XElement |
ListSubjectsEnumerable() |
Outputs a collection of flat record nodes. Used to show a list of subjects on the website, or for searches. | IEnumerable<XElement> |
ListSubjectsFromCSV(string SubjectsCSV) |
Outputs a collection of flat record nodes from a CSV list of GUID Id values. Used to show sub-lists of subjects within a record page on the website. | XElement |
ListSubjectsFromEducationLevelId(Guid? EducationLevelId) |
Outputs a collection of flat record nodes from a GUID Id value. Used to show sub-lists of subjects within a record page on the website. | XElement |
ListSubjectsFromModuleId(Guid ModuleId) |
Outputs a collection of flat record nodes from a GUID Id value. Used to show sub-lists of subjects within a record page on the website. | XElement |
ListSubjectsFromPersonId(Guid PersonId) |
Outputs a collection of flat record nodes from a GUID Id value. Used to show sub-lists of subjects within a record page on the website. | XElement |
GetSubjectConcise(Guid SubjectId) |
Outputs a single flat record node. May only contain key fields from the record. Used to show sub-record of a subjects within a record page on the website. | XElement |
GetSubjectFull(Guid SubjectId) |
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 subject on the website. | XElement |
AssembleSubjectTitle(string SubjectName, string SubjectLevelName) |
Combines input parameters and outputs the title of a subject. | String |
AssembleSubjectURL(string SubjectCode) |
Combines input parameters and outputs the URL of a subject. | String |