C# Class Rock.Model.PrayerRequestService

Data access/service class for Rock.Model.PrayerRequest entity objects.
Mostrar archivo Open project: NewSpring/Rock Class Usage Examples

Public Methods

Method 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 method

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

GetByCategoryIds() public method

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.
return IEnumerable