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

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