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)); } }
public IActionResult Player(Guid Id) { var players = gameService.AddCard(Id); return(View(players)); }