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