C# Class SocialBootstrapApi.ServiceInterface.TodoRepository

In-memory repository, so we can run the TODO app without any external dependencies Registered in Funq as a singleton, auto injected on every request
Show file Open project: ServiceStackApps/SocialBootstrapApi

Public Methods

Method Description
DeleteById ( long id ) : void
GetAll ( ) : List
GetById ( long id ) : Todo
Store ( Todo todo ) : Todo

Method Details

DeleteById() public method

public DeleteById ( long id ) : void
id long
return void

GetAll() public method

public GetAll ( ) : List
return List

GetById() public method

public GetById ( long id ) : Todo
id long
return Todo

Store() public method

public Store ( Todo todo ) : Todo
todo Todo
return Todo