Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Ahmed Mohamed 3 posts 83 karma points
    Jun 09, 2021 @ 09:50
    Ahmed Mohamed

    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

  • Huw Reddick 534 posts 1724 karma points
    Jun 11, 2021 @ 17:05
    Huw Reddick

    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


Please Sign in or register to post replies

Write your reply to: