コード例 #1
0
 public static ShoppingProvider Instance()
 {
     if (HiContext.Current.SiteSettings.IsDistributorSettings)
     {
         return(ShoppingSubsiteProvider.CreateInstance());
     }
     return(ShoppingMasterProvider.CreateInstance());
 }
コード例 #2
0
        public static ShoppingProvider Instance()
        {
            ShoppingProvider result;

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