C# Class DemoSite.Business.FakeStore.FakeProductDatabase

This class fakes what otherwise might have been an external product database. It's included in order to show how easy it is to feed the web site with content from other sources without needing to mirror the structure or information as pages in the system.
Afficher le fichier Open project: KalikoCMS/DemoSite.Mvc

Méthodes publiques

Méthode Description
GetProduct ( string productId ) : Product
GetProducts ( ) : List
IsValidProduct ( string productId ) : bool

Method Details

GetProduct() public static méthode

public static GetProduct ( string productId ) : Product
productId string
Résultat Product

GetProducts() public static méthode

public static GetProducts ( ) : List
Résultat List

IsValidProduct() public static méthode

public static IsValidProduct ( string productId ) : bool
productId string
Résultat bool