public static CookieShoppingProvider Instance()
 {
     if (HiContext.Current.SiteSettings.IsDistributorSettings)
     {
         return(CookieShoppingSubsiteProvider.CreateInstance());
     }
     return(CookieShoppingMasterProvider.CreateInstance());
 }
Esempio n. 2
0
 static CookieShoppingMasterProvider()
 {
     CookieShoppingMasterProvider._defaultInstance = (DataProviders.CreateInstance("Hidistro.SaleSystem.Data.CookieShoppingData,Hidistro.SaleSystem.Data") as CookieShoppingMasterProvider);
 }