public async Task <IActionResult> CreateNextRound(int id, int round) { var temp = await CallAPI.GetTournoi(id); if (temp.Item1) { return(NotFound()); } Tournoi tournoi = temp.Item2; if (tournoi.Over) { return(NotFound()); } RetourAPI retour = await CallAPI.CreateRound(new Round { IdTournament = id, RoundNumber = (round + 1), StartRound = DateTime.UtcNow }); if (!retour.Succes) { // } return(RedirectToAction("Tournoi", new { id = id })); }