public ActionResult <Schotten2Response> Retreat(string matchId, int sectionIndex) { var playerId = User.FindFirst(ClaimTypes.NameIdentifier).Value; var game = _service.Retreat(matchId, playerId, sectionIndex); return(_service.MapResponse(game, playerId.ToString())); }
public void Retreat(int sectionIndex) { var playerId = GetPlayerId(); var matchId = GetMatchId(); var game = _service.Retreat(matchId, playerId, sectionIndex); SendState(game); }