C# 클래스 PetStore.Service.DefaultProductService

This service doesn't add much, as a matter of fact we're being extremely purists here and the service just sits between the presentation layer and the data access layer. We, for this project, don't want the presentation layer using the data access layer directly. But, as I said, we're just being purists.
상속: IProductService
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
DefaultProductService ( IProductDataAccess productDataAccess ) : System
Find ( int productId ) : Product
FindAll ( ) : PetStore.Model.Product[]
FindByCategory ( int categoryId ) : PetStore.Model.Product[]

메소드 상세

DefaultProductService() 공개 메소드

public DefaultProductService ( IProductDataAccess productDataAccess ) : System
productDataAccess IProductDataAccess
리턴 System

Find() 공개 메소드

public Find ( int productId ) : Product
productId int
리턴 PetStore.Model.Product

FindAll() 공개 메소드

public FindAll ( ) : PetStore.Model.Product[]
리턴 PetStore.Model.Product[]

FindByCategory() 공개 메소드

public FindByCategory ( int categoryId ) : PetStore.Model.Product[]
categoryId int
리턴 PetStore.Model.Product[]