C# Class PersonRepository.Service.ServiceRepository

Mostra file Open project: jeremybytes/learning-dependency-injection Class Usage Examples

Public Methods

Method Description
AddPerson ( Person newPerson ) : void
DeletePerson ( string lastName ) : void
GetPeople ( ) : IEnumerable
GetPerson ( string lastName ) : Person
ServiceRepository ( ) : System.Collections.Generic
UpdatePeople ( IEnumerable updatedPeople ) : void
UpdatePerson ( string lastName, Person updatedPerson ) : void

Method Details

AddPerson() public method

public AddPerson ( Person newPerson ) : void
newPerson Common.Person
return void

DeletePerson() public method

public DeletePerson ( string lastName ) : void
lastName string
return void

GetPeople() public method

public GetPeople ( ) : IEnumerable
return IEnumerable

GetPerson() public method

public GetPerson ( string lastName ) : Person
lastName string
return Common.Person

ServiceRepository() public method

public ServiceRepository ( ) : System.Collections.Generic
return System.Collections.Generic

UpdatePeople() public method

public UpdatePeople ( IEnumerable updatedPeople ) : void
updatedPeople IEnumerable
return void

UpdatePerson() public method

public UpdatePerson ( string lastName, Person updatedPerson ) : void
lastName string
updatedPerson Common.Person
return void