Exemplo n.º 1
0
        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()));
        }
Exemplo n.º 2
0
        public void Retreat(int sectionIndex)
        {
            var playerId = GetPlayerId();
            var matchId  = GetMatchId();
            var game     = _service.Retreat(matchId, playerId, sectionIndex);

            SendState(game);
        }