public async Task <IActionResult> Post([FromBody] BuyResearchDto buyResearch)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            var userId = int.Parse(HttpContext.User.Identity.Name);
            await _currentInnovationService.BuyInnovation(userId, buyResearch.Innovation);

            return(Ok());
        }
        public async Task <IActionResult> PostInnovation(int playerId, [FromBody] BuyResearchDto buyResearch)
        {
            var player = await _playerService.GetPlayerAsync(playerId);

            if (player == null)
            {
                return(NotFound());
            }

            await _currentInnovationService.BuyInnovation(player.UserId, buyResearch.Innovation);

            return(Ok());
        }