Пример #1
0
        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));
        }
Пример #2
0
        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));
        }