Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.