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