Esempio n. 1
0
        /// <summary>
        /// HotCircle
        /// </summary>
        /// <returns></returns>
        public static AsideColumnBody HotCircle(int CircleCnt)
        {
            var DistinctResult = MongoDbRepository.Distinct(UserInfo.CollectionName, nameof(UserInfo.TopicList));
            var groupCntResult = new Dictionary <string, int>();

            foreach (string item in DistinctResult)
            {
                groupCntResult.Add(item, UserInfo.GetJoinsCnt(item));
            }
            var titlelist = new AsideColumnBody()
            {
                Title      = "热门圈子",
                DetailItem = GetGenericItemListByRankContain(new RankContain(groupCntResult), CircleCnt),
                HrefBase   = "/Home/TagList?PageNo=1&TagName="
            };

            return(titlelist);
        }