public IActionResult JoinGame(JoinGameVM viewModel) { if (!ModelState.IsValid) { return(View(viewModel)); } return(RedirectToAction(nameof(PlayController.ReadyWait))); }
public IActionResult JoinGame() { var viewModel = new JoinGameVM(); return(View(viewModel)); }