Ejemplo n.º 1
0
 public ActionResult Details(int?ID)
 {
     if (ID == null)
     {
         return(RedirectToAction("TournamentList"));
     }
     else
     {
         TournamentModel model = _tournament.GetDetail(ID.Value);
         return(View(model));
     }
 }
Ejemplo n.º 2
0
 public ActionResult Predict(int?ID)
 {
     try
     {
         int UserID           = _User.GetUserID(User.Identity.Name.ToLower());
         var model            = _match.GetItemListUserView(UserID, ID.Value);
         var TournamentDetail = _tournament.GetDetail(ID.Value);
         ViewBag.TournamentName = TournamentDetail.Title;
         ViewBag.Point          = _userPrediction.GetUserPoint(UserID, ID.Value);
         ViewBag.Rank           = _userPrediction.GetUserRanking(UserID, ID.Value);
         return(View(model));
     }
     catch
     {
         ViewBag.status = "false";
         return(View());
     }
 }
Ejemplo n.º 3
0
        public string TournamentTitle(int TournamentID)
        {
            var T = _Tournament.GetDetail(TournamentID);

            return(T.Title);
        }