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)); }
public ActionResult TournamentList() { var model = _tournament.GetTournamnetList(); return(View(model)); }