示例#1
0
        public async Task <IHttpActionResult> AddCard(long gameId)
        {
            try
            {
                AddCardViewModel addCardViewModel = await _gameService.AddCard(gameId);

                return(Ok(addCardViewModel));
            }
            catch (Exception ex)
            {
                string message = $"{ex.Source}|{ex.TargetSite}|{ex.StackTrace}|{ex.Message}";
                _logger.Error(message);
                return(BadRequest(GameMessageHelper.GameError));
            }
        }
示例#2
0
        public IActionResult Player(Guid Id)
        {
            var players = gameService.AddCard(Id);

            return(View(players));
        }