public IActionResult RecordLabels() { if (!HasAccess()) { return(RedirectProperly()); } ViewData["Message"] = "RecordLabels"; var model = new PagingModel <RecordLabel>(); model.PagingList = _recordLabelManager.Get(skip: model.Skip, take: model.Take, includeProperties: $"{nameof(RecordLabel.User)},{nameof(RecordLabel.RecordLabelArtists)}.{nameof(Artist)}.{nameof(Artist.Follows)}", orderBy: x => x.OrderByDescending(y => y.RecordLabelArtists.Sum(z => z.Artist.Follows.Count))).ToList(); return(View(model)); }
public IActionResult Index() { var model = new PagingModel <RecordLabel>(); model.PagingList = _recordLabelManager.Get(skip: model.Skip, take: model.Take, includeProperties: $"{nameof(RecordLabel.User)},{nameof(RecordLabel.RecordLabelArtists)}").ToList(); return(View(model)); }