Redirect to edit after adding game
This commit is contained in:
parent
702bdeb97f
commit
b797e80cd8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue