Beispiel #1
0
 public ActionResult AddPlayer(Player player)
 {
     if (ModelState.IsValid)
     {
         playerRepository.AddResponse(player);
         ModelState.Clear();
         return(RedirectToAction(nameof(ManagePlayers)));
     }
     else
     {
         return(View());
     }
 }