Ejemplo n.º 1
0
 public static ProductProvider Instance()
 {
     if (HiContext.Current.SiteSettings.IsDistributorSettings)
     {
         return(ProductSubsiteProvider.CreateInstance());
     }
     return(ProductMasterProvider.CreateInstance());
 }
Ejemplo n.º 2
0
        public static ProductProvider Instance()
        {
            ProductProvider result;

            if (HiContext.Current.SiteSettings.IsDistributorSettings)
            {
                result = ProductSubsiteProvider.CreateInstance();
            }
            else
            {
                result = ProductMasterProvider.CreateInstance();
            }
            return(result);
        }
Ejemplo n.º 3
0
 static ProductMasterProvider()
 {
     ProductMasterProvider._defaultInstance = (DataProviders.CreateInstance("Hidistro.SaleSystem.Data.ProductData,Hidistro.SaleSystem.Data") as ProductMasterProvider);
 }