Пример #1
0
 public IActionResult AddPlayer(AddPlayerVM model)
 {
     if (!ModelState.IsValid)
     {
         return(View(model));
     }
     else
     {
         repHandler.AddPlayer(model);
         return(RedirectToAction(nameof(Index)));
     }
 }