public GenreController() { string cnnString = ConfigurationManager.ConnectionStrings["defaultCnn"].ToString(); var dbContext = new eMovieDbContext(cnnString); var genreRepo = new GenreRepository(dbContext); _genreService = new GenreService(genreRepo); }
public BaseRepository(eMovieDbContext context) { _context = context; }
public MovieRepository(eMovieDbContext context) : base(context) { }