C# Class iServe.Models.Need

Inheritance: IAuditable
Mostrar archivo Open project: fellowshiptech/ft-iserve Class Usage Examples

Public Methods

Method Description
GetAllByChurchID ( int churchID ) : NeedQuery
GetAllByUser ( int userID, string>.Dictionary &userNeedStatuses ) : List
GetByKeyAndUserID ( int iD, int userID ) : Need

Gets the need with the specified id which was submitted by the specified user id.

GetByUserID ( int userID ) : IQueryable

Gets all the needs that are submitted by the specified user.

GetInvolvementCounts ( List needs ) : InvolvementCount>.Dictionary

Takes a list of Needs and returns a dictionary of InvolvementCount objects with NeedID as key

Private Methods

Method Description
OnCreated ( ) : void

Method Details

GetAllByChurchID() public method

public GetAllByChurchID ( int churchID ) : NeedQuery
churchID int
return NeedQuery

GetAllByUser() public method

public GetAllByUser ( int userID, string>.Dictionary &userNeedStatuses ) : List
userID int
userNeedStatuses string>.Dictionary
return List

GetByKeyAndUserID() public method

Gets the need with the specified id which was submitted by the specified user id.
public GetByKeyAndUserID ( int iD, int userID ) : Need
iD int /// The id of the need. ///
userID int /// The id of the user that submitted the need. ///
return Need

GetByUserID() public method

Gets all the needs that are submitted by the specified user.
public GetByUserID ( int userID ) : IQueryable
userID int /// The user id of the user that submitted the need. ///
return IQueryable

GetInvolvementCounts() public method

Takes a list of Needs and returns a dictionary of InvolvementCount objects with NeedID as key
public GetInvolvementCounts ( List needs ) : InvolvementCount>.Dictionary
needs List
return InvolvementCount>.Dictionary