コード例 #1
0
        public ActionResult DeletePlayer(long id, long challengeid)
        {
            S_CompetitionPlayers c = CompetitionManager.GetCompetitionPlayer(id);

            try
            {
                CompetitionManager.DeletePlayerByID(c.id);
                TempData["message"] = "De deelnemer is verwijderd.";
            }
            catch (Exception e)
            {
                TempData["error"] = e.Message;
            }

            return(RedirectToAction("CompetitionPlayers", "competition", new { id = c.competitionid, challengeid = challengeid }));
        }