//repo and mapper dependency injection into constructor
 public MoviesController(IGenericCrudRepo <Movie> movieRepo, IMapper mapper)
 {
     this.movieRepo = movieRepo;
     this.mapper    = mapper;
 }
Ejemplo n.º 2
0
 //repo and mapper dependency injection into constructor
 public GenresController(IGenericCrudRepo <Genre> genreRepo, IGenericCrudRepo <Movie> movieRepo, IMapper mapper)
 {
     this.genreRepo = genreRepo;
     this.movieRepo = movieRepo;
     this.mapper    = mapper;
 }