コード例 #1
0
        // get model for view
        private HomeRightContentViewModel GetHomeRightContentViewModel()
        {
            var homeRightContentViewModel = new HomeRightContentViewModel();

            homeRightContentViewModel.NewPrizes = GetNewPrizes();

            var pointRankingService = new PointRankingService(com);

            homeRightContentViewModel.PointRankings = pointRankingService.GetPointRankingsByPullCount(5);

            return homeRightContentViewModel;
        }
コード例 #2
0
        public ActionResult ShowFollowPointRankings(long memberId)
        {
            var pointRankingService = new PointRankingService(com);

            var pointRankingViewModels = pointRankingService.GetFollowPointRankingsByMemberId(memberId,5);

            return PartialView("_FollowRankings", pointRankingViewModels.ToList());
        }