how to select all member with strong type like (umbraco.web.PublishedModels.Member).
i try to get by this code but how to select properties value
var allmember = services.MemberService.GetMembersByMemberType("member");
note this
when i try to use
Select(x => x as Umbraco.Web.PublishedModels.Member);
all data is null
Umbraco identity
how to select all member with strong type like (umbraco.web.PublishedModels.Member). i try to get by this code but how to select properties value
var allmember = services.MemberService.GetMembersByMemberType("member"); note this when i try to use Select(x => x as Umbraco.Web.PublishedModels.Member); all data is null
The MemberService functions return IMember objects, so in your example allmember will be an IEnumerable
you can get property values from an iMember object by doing
member.GetValue("propertyAlias")
is working on a reply...