How to Create Profile Property through Coding in DNN

How to Create Profile Property through Coding in DNN

//Here 'Level' is the name of profile property if (DotNetNuke.Entities.Profile.ProfileController.GetPropertyDefinitionByName(this.PortalId, "Level") == null){DotNetNuke.Entities.Profile.ProfileController.AddPropertyDefinition(new DotNetNuke.Entities.Profile.ProfilePropertyDefinition(this.PortalId){PropertyName =…