Esempio n. 1
0
        public ActionResult Delete(long id)
        {
            S_Competition c = CompetitionManager.GetCompetition(id);

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

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