public ActionResult DeleteChallenge(int id, Challenges challenges)

        {
            var _challenges = new Challenges();

            _challengeService.DeleteChallenge(id, challenges);
            return(RedirectToAction("GetChallenges", "Challenge", new { id = challenges.Id }));
        }
Beispiel #2
0
        // public void AJAXEditChallenge(int? id, bool value)
        // {
        //    _dao.AJAXEditChallenge(id, value);
        // }

        //public IEnumerable<Challenges> BuildChallengeTable()
        //{
        //    return _dao.BuildChallengeTable();
        //}

        public void DeleteChallenge(int id, Challenges challenges)
        {
            _dao.DeleteChallenge(id, challenges);
        }