public static ShoppingProvider Instance() { if (HiContext.Current.SiteSettings.IsDistributorSettings) { return(ShoppingSubsiteProvider.CreateInstance()); } return(ShoppingMasterProvider.CreateInstance()); }
public static ShoppingProvider Instance() { ShoppingProvider result; if (HiContext.Current.SiteSettings.IsDistributorSettings) { result = ShoppingSubsiteProvider.CreateInstance(); } else { result = ShoppingMasterProvider.CreateInstance(); } return(result); }
static ShoppingSubsiteProvider() { ShoppingSubsiteProvider._defaultInstance = (DataProviders.CreateInstance("Hidistro.SaleSystem.DistributionData.ShoppingData,Hidistro.SaleSystem.DistributionData") as ShoppingSubsiteProvider); }