C# Class StarDotOne.Controllers.PersonApiController

Inheritance: ApiController
Show file Open project: jongalloway/StarDotOne

Public Methods

Method Description
GetPeople ( ) : IQueryable

Returns all people in the system.

PutPerson ( int id, Person person ) : Task

Puts the person.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources that are used by the object and, optionally, releases the managed resources.

Private Methods

Method Description
DeletePerson ( int id ) : Task
GetPerson ( int id ) : Task
PersonExists ( int id ) : bool

Persons the exists.

PostPerson ( Person person ) : Task

Method Details

Dispose() protected method

Releases the unmanaged resources that are used by the object and, optionally, releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

GetPeople() public method

Returns all people in the system.
public GetPeople ( ) : IQueryable
return IQueryable

PutPerson() public method

Puts the person.
public PutPerson ( int id, Person person ) : Task
id int The identifier.
person StarDotOne.Models.Person The person.
return Task