public MoviesController(IMoviesService movies, IActorsService actors, IDirectorsService directors, IStudiosService studios)
 {
     this.movies = movies;
     this.actors = actors;
     this.directors = directors;
     this.studios = studios;
 }
Example #2
0
 public ActorsController(IActorsService actorsService)
 {
     this.actorsService = actorsService;
 }
Example #3
0
 public ActorsController(IActorsService actorsService)
 {
     this.actorsService = actorsService;
 }
        //public SearchController()
        //{
        //    var dbContext = new MovieDbContext();
        //    this.moviesService = new MoviesService(new EfRepository<Movie>(dbContext));
        //    this.actorsService = new ActorsService(new EfRepository<Actor>(dbContext));
        //    this.genresService = new GenresService(new EfRepository<Genre>(dbContext));
        //}

        public SearchController(IActorsService actorsService, IGenresService genresService, IMoviesService moviesService)
        {
            this.actorsService = actorsService;
            this.genresService = genresService;
            this.moviesService = moviesService;
        }
Example #5
0
 public HomeController(IActorsService actorsService, IActorsOfFilmService actorsOfFilmService)
 {
     _actorsService       = actorsService;
     _actorsOfFilmService = actorsOfFilmService;
 }
Example #6
0
 public ActorsController(IActorsService service)
 {
     _service = service;
 }
Example #7
0
 public ManageActorsController(IActorsService actors)
 {
     this.actorsService = actors;
 }
Example #8
0
 public MoviesActorsService(IRepository <MoviesActors> repo,
                            IActorsService actorsService)
 {
     this._repository    = repo;
     this._actorsService = actorsService;
 }
 public ActorController(IActorsService actorService)
 {
     _actorsService = actorService;
 }
Example #10
0
 public ManageMoviesController(IActorsService actorsService, IMoviesService movie, IGenresService genreService)
 {
     this.actorsService = actorsService;
     this.genreService  = genreService;
     this.movieService  = movie;
 }