C# Class RepositoryExample.Service.CharacterService

Inheritance: ICharacterService
Exibir arquivo Open project: ryancole/RepositoryExample

Public Methods

Method Description
CharacterService ( IWarcraftContext context ) : System.Collections.Generic
GetAll ( ) : IReadOnlyCollection

Retrieve all Characters

GetByName ( string name ) : Character

Retrieve a Character with the specified Name

Insert ( Character character ) : Character

Insert a new Character

Method Details

CharacterService() public method

public CharacterService ( IWarcraftContext context ) : System.Collections.Generic
context IWarcraftContext
return System.Collections.Generic

GetAll() public method

Retrieve all Characters
public GetAll ( ) : IReadOnlyCollection
return IReadOnlyCollection

GetByName() public method

Retrieve a Character with the specified Name
public GetByName ( string name ) : Character
name string
return RepositoryExample.Entity.Character

Insert() public method

Insert a new Character
public Insert ( Character character ) : Character
character RepositoryExample.Entity.Character
return RepositoryExample.Entity.Character