public IActionResult AddPlayer([FromBody] int roomId, int playerId) { var room = _roomService.GetById(roomId); var player = _userService.GetById(playerId); room.Players.Add(player); //if all players here InGameState inGameState = new InGameState(); inGameState.DoAction(room); return(Ok()); }