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 ProductMasterProvider() { ProductMasterProvider._defaultInstance = (DataProviders.CreateInstance("Hidistro.SaleSystem.Data.ProductData,Hidistro.SaleSystem.Data") as ProductMasterProvider); }