예제 #1
0
        public ActionResult _PointList()
        {
            int UserID = _User.GetUserID(User.Identity.Name.ToLower());
            var TList  = _tournament.GetTournamnetList();
            List <UserPointStatusModel> iList = new List <UserPointStatusModel>();

            foreach (var item in TList)
            {
                iList.Add(new UserPointStatusModel {
                    TournamentID = item.ID, Tournament = item.Title, Point = _userPrediction.GetUserPoint(UserID, item.ID), Rank = _userPrediction.GetUserRanking(UserID, item.ID)
                });
            }

            return(PartialView(iList));
        }
예제 #2
0
        public ActionResult TournamentList()
        {
            var model = _tournament.GetTournamnetList();

            return(View(model));
        }