C# Class AdventureWorks.WebServices.Controllers.ProductController

Inheritance: ApiController
ファイルを表示 Open project: PrismLibrary/Prism-Samples-Windows

Public Methods

Method Description
GetProduct ( string id ) : AdventureWorks.WebServices.Models.Product
GetProducts ( ) : IEnumerable
GetProducts ( int categoryId ) : IEnumerable
GetSearchResults ( string queryString, int maxResults ) : SearchResult
ProductController ( ) : AdventureWorks.WebServices.Models
ProductController ( IProductRepository productRepository ) : AdventureWorks.WebServices.Models

Method Details

GetProduct() public method

public GetProduct ( string id ) : AdventureWorks.WebServices.Models.Product
id string
return AdventureWorks.WebServices.Models.Product

GetProducts() public method

public GetProducts ( ) : IEnumerable
return IEnumerable

GetProducts() public method

public GetProducts ( int categoryId ) : IEnumerable
categoryId int
return IEnumerable

GetSearchResults() public method

public GetSearchResults ( string queryString, int maxResults ) : SearchResult
queryString string
maxResults int
return AdventureWorks.WebServices.Models.SearchResult

ProductController() public method

public ProductController ( ) : AdventureWorks.WebServices.Models
return AdventureWorks.WebServices.Models

ProductController() public method

public ProductController ( IProductRepository productRepository ) : AdventureWorks.WebServices.Models
productRepository IProductRepository
return AdventureWorks.WebServices.Models