public async Task <IActionResult> StartGameAsync(string lobbyId, CancellationToken cancellationToken) { var playerId = HttpContext.Request.Cookies["player_id"]; if (string.IsNullOrEmpty(playerId)) { return(BadRequest("Required paramater player_id is not present")); } await _lobbyService.StartGameAsync(lobbyId, playerId, cancellationToken); return(NoContent()); }