Created
June 19, 2015 17:42
-
-
Save abjerner/6fb655916f95cf0fd539 to your computer and use it in GitHub Desktop.
Listing all members in Umbraco:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Umbraco.Core.Services | |
@inherits UmbracoViewPage | |
@{ | |
IMemberService ms = UmbracoContext.Application.Services.MemberService; | |
int total; | |
foreach (IMember member in ms.GetAll(0, Int32.MaxValue, out total)) { | |
<p>@member.Name</p> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment