Ejemplo n.º 1
0
        public async Task <string> OneMoreCard(int roundId, int userId)
        {
            try
            {
                var player = await _roundService.GetUser(userId);

                int idCard = await _roundService.GetCard(player, roundId);

                return(JsonConvert.SerializeObject(idCard));
            }
            catch (Exception e)
            {
                LogWriter.WriteLog(e.Message, "GameApiController");
                throw;
            }
        }