예제 #1
0
        public async Task <string> GetCardsForPlayers(int idGame, string nameUser, int roundId)
        {
            try
            {
                var userCards = await _roundService.GetCardsForStartGame(idGame, nameUser, roundId);

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