public ActionResult AddChallenge([Bind(Include = "Id,Description")] Challenges challenges, ApplicationUser user) { if (ModelState.IsValid) { _challengeService.AddChallenge(challenges, user); return(RedirectToAction("GetChallenges")); } return(View(challenges)); }
public void AddChallenge(Challenges challenges, ApplicationUser user) { _dao.AddChallenge(challenges, user); }