C# Class Services.BooksService

Inheritance: IBooksService
显示文件 Open project: ProfessionalCSharp/ProfessionalCSharp6 Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddOrUpdateBookAsync ( Book book ) : Task
BooksService ( IBooksRepository repository ) : Contracts
GetBook ( int bookId ) : Book
LoadBooksAsync ( ) : Task

Method Details

AddOrUpdateBookAsync() public method

public AddOrUpdateBookAsync ( Book book ) : Task
book Book
return Task

BooksService() public method

public BooksService ( IBooksRepository repository ) : Contracts
repository IBooksRepository
return Contracts

GetBook() public method

public GetBook ( int bookId ) : Book
bookId int
return Book

LoadBooksAsync() public method

public LoadBooksAsync ( ) : Task
return Task