C# Class 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.
Inheritance: IProductService
Exibir arquivo Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
DefaultProductService ( IProductDataAccess productDataAccess ) : System
Find ( int productId ) : Product
FindAll ( ) : PetStore.Model.Product[]
FindByCategory ( int categoryId ) : PetStore.Model.Product[]

Method Details

DefaultProductService() public method

public DefaultProductService ( IProductDataAccess productDataAccess ) : System
productDataAccess IProductDataAccess
return System

Find() public method

public Find ( int productId ) : Product
productId int
return PetStore.Model.Product

FindAll() public method

public FindAll ( ) : PetStore.Model.Product[]
return PetStore.Model.Product[]

FindByCategory() public method

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