public ActionResult TeamEntry() { int id_champ = int.Parse(Request["id_champ"]); Championship c = _championshipBLL.ChampionshipSelect(id_champ); ChampProfileVM cpvm = new ChampProfileVM(_sessionHelper.CurrentPlayer, c); if (_sessionHelper.CurrentPlayer.Id != 0) { if (c.Type == ChampionshipType.X1) { cpvm.Err = _championshipBLL.ChampionshipPlayerCreate(_sessionHelper.CurrentPlayer, c); } else { if (_sessionHelper.CurrentPlayer.IsCaptain || _sessionHelper.CurrentPlayer.IsSubCaptain) { cpvm.Err = _championshipBLL.ChampionshipTeamCreate(_sessionHelper.CurrentPlayer.Id, c); } } return(View("profile", "_Master2", cpvm)); } else { return(View("profile", "_Master", cpvm)); } }
// // GET: /Championship/Current public ActionResult Current(int id_league) { Championship c = _championshipBLL.ChampionshipSelectCurrentByLeague(id_league); if (c.Type == ChampionshipType.X1) { ChampProfileVM cpvm = new ChampProfileVM(_sessionHelper.CurrentPlayer, c); if (_sessionHelper.CurrentPlayer.Id == 0) { return(View("profilex1", "_Master", cpvm)); } else { return(View("profilex1", "_Master2", cpvm)); } } else { ChampProfileVM cpvm = new ChampProfileVM(_sessionHelper.CurrentPlayer, c); if (_sessionHelper.CurrentPlayer.Id == 0) { return(View("profile", "_Master", cpvm)); } else { return(View("profile", "_Master2", cpvm)); } } }
// // GET: /Championship/ProfileX1 public ActionResult ProfilesX1(int id_champ) { Championship c = _championshipBLL.ChampionshipSelect(id_champ); ChampProfileVM cpvm = new ChampProfileVM(_sessionHelper.CurrentPlayer, c); if (_sessionHelper.CurrentPlayer.Id == 0) { return(View("profilex1", "_Master", cpvm)); } else { return(View("profilex1", "_Master2", cpvm)); } }