C# 클래스 AdventureWorks.WebServices.Controllers.CategoryController

상속: ApiController
파일 보기 프로젝트 열기: PrismLibrary/Prism-Samples-Windows

공개 메소드들

메소드 설명
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