public ActionResult AJAXAddChallenge([Bind(Include = "Id,Description")] Challenges challenges, ApplicationUser user) { if (ModelState.IsValid) { _challengeService.AJAXAddChallenge(challenges, user); challenges.Completed = false; challenges.From = null; challenges.Until = null; } return(PartialView("_ChallengeTable", GetMyChallenges())); }
public void AJAXAddChallenge(Challenges challenges, ApplicationUser user) { _dao.AJAXAddChallenge(challenges, user); }