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

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

Files

The following files are supplied with the University Package:

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

Methods

Method: Description: Output type:
ListNews() Outputs a collection of flat record nodes. Used to show a list of news articles on the website. XElement
ListNewsEnumerable() Outputs a collection of flat record nodes. Used to show a list of news articles on the website, or for searches. IEnumerable<XElement>
ListNewsRecent() Outputs a collection of flat record nodes. Used to show a list of recent news articles on the website. XElement
ListNewsRecentEnumerable() Outputs a collection of flat record nodes. Used to show a list of recent news articles on the website, or for searches. IEnumerable<XElement>
ListNewsFromCSV(string NewsCSV) Outputs a collection of flat record nodes from a CSV list of GUID Id values. Used to show sub-lists of news within a record page on the website. XElement
ListNewsFromPersonId(Guid PersonId) Outputs a collection of flat record nodes from a GUID Id value. Used to show sub-lists of news within a record page on the website. XElement
GetNewsConcise(Guid NewsId) Outputs a single flat record node. May only contain key fields from the record. Used to show sub-record of a news within a record page on the website. XElement
GetNewsFull(Guid NewsId) 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 news on the website. XElement
AssembleNewsURL(DateTime ReleaseDate, string NewsId) Combines input parameters and outputs the URL of a news article. String

Updated: 22 January 2022