Beispiel #1
0
        public async Task <IActionResult> Create([Bind("tournamentId,name")] Tournament tournament)
        {
            if (ModelState.IsValid)
            {
                await _tournamentService.AddAndSave(tournament);

                return(RedirectToAction(nameof(Index)));
            }
            return(View(tournament));
        }