C# Класс AdventureWorks.WebServices.Controllers.CategoryController

Наследование: ApiController
Показать файл Открыть проект

Открытые методы

Метод Описание
CategoryController ( ) : System.Collections.Generic
CategoryController ( IRepository categoryRepository, IProductRepository productRepository ) : System.Collections.Generic
GetCategories ( int parentId, int maxAmountOfProducts ) : IEnumerable
GetCategory ( int id ) : Category

Приватные методы

Метод Описание
FillProducts ( IEnumerable categories ) : void
NewCategory ( Category category ) : Category

Описание методов

CategoryController() публичный Метод

public CategoryController ( ) : System.Collections.Generic
Результат System.Collections.Generic

CategoryController() публичный Метод

public CategoryController ( IRepository categoryRepository, IProductRepository productRepository ) : System.Collections.Generic
categoryRepository IRepository
productRepository IProductRepository
Результат System.Collections.Generic

GetCategories() публичный Метод

public GetCategories ( int parentId, int maxAmountOfProducts ) : IEnumerable
parentId int
maxAmountOfProducts int
Результат IEnumerable

GetCategory() публичный Метод

public GetCategory ( int id ) : Category
id int
Результат AdventureWorks.WebServices.Models.Category