public static MemberProvider Instance() { if (HiContext.Current.SiteSettings.IsDistributorSettings) { return(MemberSubsiteProvider.CreateInstance()); } return(MemberMasterProvider.CreateInstance()); }
public static MemberProvider Instance() { MemberProvider result; if (HiContext.Current.SiteSettings.IsDistributorSettings) { result = MemberSubsiteProvider.CreateInstance(); } else { result = MemberMasterProvider.CreateInstance(); } return(result); }