public static ProductProvider Instance() { if (HiContext.Current.SiteSettings.IsDistributorSettings) { return(ProductSubsiteProvider.CreateInstance()); } return(ProductMasterProvider.CreateInstance()); }
public static ProductProvider Instance() { ProductProvider result; if (HiContext.Current.SiteSettings.IsDistributorSettings) { result = ProductSubsiteProvider.CreateInstance(); } else { result = ProductMasterProvider.CreateInstance(); } return(result); }
static ProductSubsiteProvider() { ProductSubsiteProvider._defaultInstance = (DataProviders.CreateInstance("Hidistro.SaleSystem.DistributionData.ProductData,Hidistro.SaleSystem.DistributionData") as ProductSubsiteProvider); }