C# Class AdventureWorks.WebServices.Controllers.CategoryController

Inheritance: ApiController
Mostra file Open project: PrismLibrary/Prism-Samples-Windows

Public Methods

Method Description
CategoryController ( ) : System.Collections.Generic
CategoryController ( IRepository categoryRepository, IProductRepository productRepository ) : System.Collections.Generic
GetCategories ( int parentId, int maxAmountOfProducts ) : IEnumerable
GetCategory ( int id ) : Category

Private Methods

Method Description
FillProducts ( IEnumerable categories ) : void
NewCategory ( Category category ) : Category

Method Details

CategoryController() public method

public CategoryController ( ) : System.Collections.Generic
return System.Collections.Generic

CategoryController() public method

public CategoryController ( IRepository categoryRepository, IProductRepository productRepository ) : System.Collections.Generic
categoryRepository IRepository
productRepository IProductRepository
return System.Collections.Generic

GetCategories() public method

public GetCategories ( int parentId, int maxAmountOfProducts ) : IEnumerable
parentId int
maxAmountOfProducts int
return IEnumerable

GetCategory() public method

public GetCategory ( int id ) : Category
id int
return AdventureWorks.WebServices.Models.Category