public ActionResult EditChallenge(Challenges challenges) { if (ModelState.IsValid) { _challengeService.EditChallenge(challenges); return(RedirectToAction("GetChallenges")); } return(View(challenges)); }
public void EditChallenge(Challenges challenges) { _dao.EditChallenge(challenges); }