コード例 #1
0
 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()));
 }
コード例 #2
0
 public void AJAXAddChallenge(Challenges challenges, ApplicationUser user)
 {
     _dao.AJAXAddChallenge(challenges, user);
 }