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.
Mostra file Open project: KalikoCMS/DemoSite.Mvc

Public Methods

Method Description
GetProduct ( string productId ) : Product
GetProducts ( ) : List
IsValidProduct ( string productId ) : bool

Method Details

GetProduct() public static method

public static GetProduct ( string productId ) : Product
productId string
return Product

GetProducts() public static method

public static GetProducts ( ) : List
return List

IsValidProduct() public static method

public static IsValidProduct ( string productId ) : bool
productId string
return bool