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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...