public void SeedGenres(MoviesContext context)
        {
            if (context.Genres.Any())
            {
                return;
            }

            var comedyGenreEntity = new GenreEntity()
            {
                Name = "Comedy",
            };

            var actionGenreEntity = new GenreEntity()
            {
                Name = "Action",
            };

            var scifiGenreEntity = new GenreEntity()
            {
                Name = "Sci-fi",
            };

            var dramaGenreEntity = new GenreEntity()
            {
                Name = "Drama",
            };

            var crimeGenreEntity = new GenreEntity()
            {
                Name = "Crime",
            };

            context.Genres.AddRange(new GenreEntity[]
            {
                comedyGenreEntity,
                actionGenreEntity,
                scifiGenreEntity,
                dramaGenreEntity,
                crimeGenreEntity
            });

            context.SaveChanges();

            _roles.Add(comedyGenreEntity.Id, comedyGenreEntity);
            _roles.Add(actionGenreEntity.Id, actionGenreEntity);
            _roles.Add(scifiGenreEntity.Id, scifiGenreEntity);
            _roles.Add(dramaGenreEntity.Id, dramaGenreEntity);
            _roles.Add(crimeGenreEntity.Id, crimeGenreEntity);
        }
        public void SeedGenres(MoviesContext context)
        {
            if (context.Genres.Any())
            {
                return;
            }

            var actionGenreEntity = new GenreEntity
            {
                Name = "Action"
            };
            var dramaGenreEntity = new GenreEntity
            {
                Name = "Drama"
            };

            context.Genres.Add(actionGenreEntity);

            context.SaveChanges();

            _roles.Add(actionGenreEntity.Id, actionGenreEntity);
            _roles.Add(dramaGenreEntity.Id, dramaGenreEntity);
        }