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