How to access custom profile type in UserProfile
I have created a new profile type called ContactID and I can't figure out how to access this custom type to update it. Ive been looking at the documentation but I just can figure it out. This is what Ive tried so far.
UserProfileManager profileManager = UserProfileManager.GetManager();
List<
Telerik.Sitefinity.Security.Model.UserProfile
> profiles = profileManager.GetUserProfiles(identity.UserId).ToList();
foreach (Telerik.Sitefinity.Security.Model.UserProfile p in profiles)
UserProfileManager profileManager = UserProfileManager.GetManager();
var basicProfile = profileManager.GetUserProfile(identity.UserId, "Telerik.Sitefinity.Security.Model.BasicProfile");
if (basicProfile..GetValue("ContactID") > 0)