예제 #1
0
 public static TradeProvider Instance()
 {
     if (HiContext.Current.SiteSettings.IsDistributorSettings)
     {
         return(TradeSubsiteProvider.CreateInstance());
     }
     return(TradeMasterProvider.CreateInstance());
 }
예제 #2
0
        public static TradeProvider Instance()
        {
            TradeProvider result;

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