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

            if (HiContext.Current.SiteSettings.IsDistributorSettings)
            {
                result = ProductSubsiteProvider.CreateInstance();
            }
            else
            {
                result = ProductMasterProvider.CreateInstance();
            }
            return(result);
        }