コード例 #1
0
 public ActionResult Create(Coach coach)
 {
     if (ModelState.IsValid)
     {
         coachRepository.InsertOrUpdate(coach);
         coachRepository.Save();
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View());
     }
 }