Exemple #1
0
 private ProfileModel(bool doLookup)
 {
     MemberProperties = new List <UmbracoProperty>();
     if (doLookup)
     {
         var helper = new MembershipHelper(ApplicationContext.Current, new HttpContextWrapper(HttpContext.Current));
         var model  = helper.GetCurrentMemberProfileModel();
         MemberProperties = model.MemberProperties;
     }
 }
Exemple #2
0
 private ProfileModel(bool doLookup)
 {
     MemberProperties = new List <UmbracoProperty>();
     if (doLookup && UmbracoContext.Current != null)
     {
         var helper = new MembershipHelper(UmbracoContext.Current);
         var model  = helper.GetCurrentMemberProfileModel();
         MemberProperties = model.MemberProperties;
     }
 }
Exemple #3
0
 public ProfileModel GetProfileModel()
 {
     return(membershipHelper.GetCurrentMemberProfileModel());
 }