Esempio n. 1
0
        public async Task <IActionResult> AssignGenreToGame(int gameId, int genreId)
        {
            if (!await _genreService.ExistsGenre(genreId))
            {
                return(BadRequest());
            }

            await _genreService.AssignGenreToGame(gameId, genreId);

            return(Ok());
        }