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
Afficher le fichier Open project: nats/castle-1.0.3-mono

Méthodes publiques

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

Method Details

DefaultProductService() public méthode

public DefaultProductService ( IProductDataAccess productDataAccess ) : System
productDataAccess IProductDataAccess
Résultat System

Find() public méthode

public Find ( int productId ) : Product
productId int
Résultat PetStore.Model.Product

FindAll() public méthode

public FindAll ( ) : PetStore.Model.Product[]
Résultat PetStore.Model.Product[]

FindByCategory() public méthode

public FindByCategory ( int categoryId ) : PetStore.Model.Product[]
categoryId int
Résultat PetStore.Model.Product[]