Exemple #1
0
 public static MemberProvider Instance()
 {
     if (HiContext.Current.SiteSettings.IsDistributorSettings)
     {
         return(MemberSubsiteProvider.CreateInstance());
     }
     return(MemberMasterProvider.CreateInstance());
 }
Exemple #2
0
        public static MemberProvider Instance()
        {
            MemberProvider result;

            if (HiContext.Current.SiteSettings.IsDistributorSettings)
            {
                result = MemberSubsiteProvider.CreateInstance();
            }
            else
            {
                result = MemberMasterProvider.CreateInstance();
            }
            return(result);
        }
 static MemberMasterProvider()
 {
     MemberMasterProvider._defaultInstance = (DataProviders.CreateInstance("Hidistro.SaleSystem.Data.MemberData,Hidistro.SaleSystem.Data") as MemberMasterProvider);
 }