public ActionResult <Schotten2Response> Resign(string matchId) { var playerId = User.FindFirst(ClaimTypes.NameIdentifier).Value; var game = _service.Exit(matchId, playerId, Game.GameEvent.Resign); return(_service.MapResponse(game, playerId.ToString())); }
public void Resign() { var playerId = GetPlayerId(); var matchId = GetMatchId(); Console.WriteLine($"Resign: {playerId}"); var game = _service.Exit(matchId, playerId, Game.GameEvent.Resign); SendState(game); }