public async Task <IActionResult> PutAsync(UpdateGameGenreRequest request, CancellationToken cancellationToken)
        {
            _logger.LogInformation("GameGenre/Put was requested.");
            var response = await _gameGenreService.UpdateAsync(_mapper.Map <GameGenreDto>(request));

            return(Ok(_mapper.Map <GameGenreResponse>(response)));
        }
        public async Task <IActionResult> PutAsync([FromBody] GameGenreResource resource)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState.GetErrorMessages()));
            }

            var gameGenre = mapper.Map <GameGenreResource, GameGenre>(resource);
            var result    = await gameGenreService.UpdateAsync(gameGenre);

            if (!result.IsSuccess)
            {
                return(BadRequest(result.Message));
            }

            var gameGenreResource = mapper.Map <GameGenre, GameGenreResource>(result.GameGenre);

            return(Ok(gameGenreResource));
        }