Copied to clipboard

Flag this post as spam?

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


  • Phil Whittaker 63 posts 267 karma points MVP 4x c-trib
    Apr 28, 2015 @ 18:32
    Phil Whittaker
    0

    Order by MemberProperty in MemberService

    I'm looking at using the order by parameter of the MemberService.GetAll() method

    I have added a numberic property to the member and I want to use the order by to take the top 8 most popular members

              var r = Services.MemberService.GetAll(0, 8, out recordCount, "Popularity", Direction.Descending, "Creator")

                    .Select(x => new MembersHomeViewModel() 

                    { 

                        FirstName = x.Properties["firstName"].Value.ToString(),

                        LastName = x.Properties["lastName"].Value.ToString()

                    }).ToList();

    When I run this it errors and says that there isn't a property of popularity, is there anyway of doing this?

Please Sign in or register to post replies

Write your reply to:

Draft