C# Class Rock.Rest.Controllers.PeopleController

Inheritance: IHasCustomRoutes
Show file Open project: SparkDevNetwork/Rock

Public Methods

Method Description
Delete ( int id ) : void

Deletes the specified identifier.

Post ( Person person ) : HttpResponseMessage

Adds a new person and puts them into a new family

Put ( int id, Person person ) : void

Private Methods

Method Description
AddExistingPersonToFamily ( int personId, int familyId, int groupRoleId, bool removeFromOtherFamilies ) : HttpResponseMessage
AddNewPersonToFamily ( Person person, int familyId, int groupRoleId ) : HttpResponseMessage
Get ( ) : IQueryable
Get ( bool includeDeceased ) : IQueryable
Get ( [ key ) : Person
GetByEmail ( string email ) : IQueryable
GetById ( int id ) : Person
GetByPersonAliasId ( int personAliasId ) : Person
GetByPhoneNumber ( string number ) : IQueryable
GetByUserName ( string username ) : Person
GetCurrentPerson ( ) : Person
GetGraduationYear ( int gradeOffset ) : int
GetImpersonationParameter ( int personId ) : string
GetPersonSearchDetails ( PersonSearchResult personSearchResult, Person person ) : void

Gets the person search details.

GetPopupHtml ( int personId ) : PersonSearchResult
GetPopupHtml ( int personId, bool emailAsLink ) : PersonSearchResult
GetSearchDetails ( int Id ) : string
Search ( string name, bool includeHtml, bool includeDetails, bool includeBusinesses = false, bool includeDeceased = false ) : IQueryable
SearchWithDetails ( IQueryable sortedPersonQry, bool showFullNameReversed ) : List

Searches the with details.

Method Details

Delete() public method

Deletes the specified identifier.
public Delete ( int id ) : void
id int The identifier.
return void

Post() public method

Adds a new person and puts them into a new family
public Post ( Person person ) : HttpResponseMessage
person Person The person.
return System.Net.Http.HttpResponseMessage

Put() public method

public Put ( int id, Person person ) : void
id int
person Person
return void