C# Class Repositories.BooksSampleRepository

Inheritance: IBooksRepository
Mostrar archivo Open project: ProfessionalCSharp/ProfessionalCSharp6

Public Methods

Method Description
AddAsync ( Book item ) : Task
BooksSampleRepository ( ) : Contracts
DeleteAsync ( int id ) : Task
GetItemAsync ( int id ) : Task
GetItemsAsync ( ) : Task>
UpdateAsync ( Book item ) : Task

Private Methods

Method Description
InitSampleBooks ( ) : void

Method Details

AddAsync() public method

public AddAsync ( Book item ) : Task
item Models.Book
return Task

BooksSampleRepository() public method

public BooksSampleRepository ( ) : Contracts
return Contracts

DeleteAsync() public method

public DeleteAsync ( int id ) : Task
id int
return Task

GetItemAsync() public method

public GetItemAsync ( int id ) : Task
id int
return Task

GetItemsAsync() public method

public GetItemsAsync ( ) : Task>
return Task>

UpdateAsync() public method

public UpdateAsync ( Book item ) : Task
item Models.Book
return Task