From b797e80cd8726e82ff020cfcae84379b1747cf2d Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Mon, 16 Jan 2023 18:08:42 -0600 Subject: [PATCH] Redirect to edit after adding game --- LANCommander/Controllers/GamesController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LANCommander/Controllers/GamesController.cs b/LANCommander/Controllers/GamesController.cs index c00a27a..7592c2d 100644 --- a/LANCommander/Controllers/GamesController.cs +++ b/LANCommander/Controllers/GamesController.cs @@ -299,7 +299,7 @@ namespace LANCommander.Controllers await GameService.Update(game); - return RedirectToAction(nameof(Index)); + return RedirectToAction(nameof(Edit), new { id = game.Id }); } return View(viewModel.Game);