Esempio n. 1
0
        public ActionResult <Schotten2Response> UseOil(string matchId, int sectionIndex)
        {
            var playerId = User.FindFirst(ClaimTypes.NameIdentifier).Value;
            var game     = _service.UseOil(matchId, playerId, sectionIndex);

            return(_service.MapResponse(game, playerId.ToString()));
        }
Esempio n. 2
0
        public void UseOil(int sectionIndex)
        {
            var playerId = GetPlayerId();
            var matchId  = GetMatchId();
            var game     = _service.UseOil(matchId, playerId, sectionIndex);

            SendState(game);
        }