public static CategoryProvider Instance()
 {
     if (HiContext.Current.SiteSettings.IsDistributorSettings)
     {
         return(CategorySubsiteProvider.CreateInstance());
     }
     return(CategoryMasterProvider.CreateInstance());
 }
예제 #2
0
        public static CategoryProvider Instance()
        {
            CategoryProvider result;

            if (HiContext.Current.SiteSettings.IsDistributorSettings)
            {
                result = CategorySubsiteProvider.CreateInstance();
            }
            else
            {
                result = CategoryMasterProvider.CreateInstance();
            }
            return(result);
        }
예제 #3
0
 static CategoryMasterProvider()
 {
     CategoryMasterProvider._defaultInstance = (DataProviders.CreateInstance("Hidistro.SaleSystem.Data.CategoryData,Hidistro.SaleSystem.Data") as CategoryMasterProvider);
 }