示例#1
0
        public IViewComponentResult Invoke(int?id)
        {
            if (id != null)
            {
                var followedList = _topicRepository.MemberFollowedTopics((int)id);

                return(View(followedList));
            }

            var list = _topicRepository.GetAll().Take(8).ToList();

            return(View(list));
        }