C# Class Rock.Model.PrayerRequestService

Data access/service class for Rock.Model.PrayerRequest entity objects.
Afficher le fichier Open project: NewSpring/Rock Class Usage Examples

Méthodes publiques

Méthode Description
GetActiveApprovedUnexpired ( ) : IOrderedQueryable

Returns a active, approved, unexpired PrayerRequests order by urgency and then by total prayer count.

GetByCategoryIds ( List categoryIds, bool onlyApproved = true, bool onlyUnexpired = true ) : IEnumerable

Returns a collection of active PrayerRequests that are in a specified Rock.Model.Category or any of its subcategories.

Method Details

GetActiveApprovedUnexpired() public méthode

Returns a active, approved, unexpired PrayerRequests order by urgency and then by total prayer count.
public GetActiveApprovedUnexpired ( ) : IOrderedQueryable
Résultat IOrderedQueryable

GetByCategoryIds() public méthode

Returns a collection of active PrayerRequests that are in a specified Rock.Model.Category or any of its subcategories.
public GetByCategoryIds ( List categoryIds, bool onlyApproved = true, bool onlyUnexpired = true ) : IEnumerable
categoryIds List A of /// the IDs to retrieve PrayerRequests for.
onlyApproved bool set false to include un-approved requests.
onlyUnexpired bool set false to include expired requests.
Résultat IEnumerable