public static CategoryProvider Instance()
 {
     if (HiContext.Current.SiteSettings.IsDistributorSettings)
     {
         return(CategorySubsiteProvider.CreateInstance());
     }
     return(CategoryMasterProvider.CreateInstance());
 }
Exemplo n.º 2
0
        public static CategoryProvider Instance()
        {
            CategoryProvider result;

            if (HiContext.Current.SiteSettings.IsDistributorSettings)
            {
                result = CategorySubsiteProvider.CreateInstance();
            }
            else
            {
                result = CategoryMasterProvider.CreateInstance();
            }
            return(result);
        }
Exemplo n.º 3
0
 static CategorySubsiteProvider()
 {
     CategorySubsiteProvider._defaultInstance = (DataProviders.CreateInstance("Hidistro.SaleSystem.DistributionData.CategoryData,Hidistro.SaleSystem.DistributionData") as CategorySubsiteProvider);
 }