/// <summary> /// 获取前N个贴吧标签ID(TagInOwner类型) /// </summary> /// <param name="topNumber">前N个ID数量</param> /// <param name="sortBy">排序依据字段</param> /// <returns></returns> public IEnumerable<long> GetTopTagsForBar(int topNumber, SortBy_Tag? sortBy) { return barSectionRepository.GetTopTagsForBar(topNumber, sortBy); }
public ActionResult _TopTopics(int topNum, bool? isFeatured, SortBy_Tag? sortby) { IEnumerable<Tag> topics = tagService.GetTopTags(topNum, isFeatured, sortby ?? SortBy_Tag.ItemCountDesc); return View(topics); }
public ActionResult _TopGroupTopics(string spaceKey, int topNumber, SortBy_Tag? sortBy) { IEnumerable<Tag> tags = new List<Tag>(); if (sortBy == SortBy_Tag.PreWeekItemCountDesc) { tags = new TagService(TenantTypeIds.Instance().Tag()).GetTopTags(topNumber, null, sortBy); } else { tags = tagService.GetTopTags(topNumber, null, sortBy ?? SortBy_Tag.DateCreatedDesc); } return View(tags); }