Redirect to edit after adding game

This commit is contained in:
Pat Hartl 2023-01-16 18:08:42 -06:00
parent 702bdeb97f
commit b797e80cd8

View file

@ -299,7 +299,7 @@ namespace LANCommander.Controllers
await GameService.Update(game); await GameService.Update(game);
return RedirectToAction(nameof(Index)); return RedirectToAction(nameof(Edit), new { id = game.Id });
} }
return View(viewModel.Game); return View(viewModel.Game);