Пример #1
0
 public ConnectionPathService(
     IRepository <ConnectionPath> repository,
     IActorMovieService actorMovieService) : base(repository)
 {
     _repository        = repository;
     _actorMovieService = actorMovieService;
 }
Пример #2
0
 public ActorMovieController(
     IActorMovieService actorService,
     IMovieService movieService)
 {
     _actorMovieService = actorService;
     _movieService      = movieService;
 }
Пример #3
0
 public ActorService(
     IActorMovieService actorMovieService,
     IRepository <ActorMovie> actorMovieRepository,
     IRepository <Actor> repository) : base(repository)
 {
     _actorMovieService    = actorMovieService;
     _actorMovieRepository = actorMovieRepository;
 }
Пример #4
0
 public MovieService(
     IGenreMovieService genreMovieService,
     IActorMovieService actorMovieService,
     IRepository <Movie> repository,
     IRepository <MovieCulture> culturedRepository) : base(culturedRepository, repository)
 {
     _genreMovieService = genreMovieService;
     _actorMovieService = actorMovieService;
 }
Пример #5
0
 public MovieController(
     IMovieService movieService,
     IGenreService genreService,
     IGenreMovieService genreMovieService,
     IActorMovieService actorMovieService,
     IActorService actorService)
 {
     _movieService      = movieService;
     _genreService      = genreService;
     _genreMovieService = genreMovieService;
     _actorMovieService = actorMovieService;
     _actorService      = actorService;
 }
Пример #6
0
 public MovieController(
     IMovieService movieService,
     IConnectionPathService connectionPathService,
     IActorMovieService actorMovieService,
     ICultureService cultureService,
     IActorService actorService,
     ApplicationUserManager applicationUserManager)
 {
     _movieService           = movieService;
     _connectionPathService  = connectionPathService;
     _actorMovieService      = actorMovieService;
     _cultureService         = cultureService;
     _actorService           = actorService;
     _applicationUserManager = applicationUserManager;
 }
        public ManagerSeriesTVController(IMoviesService movieService, IFilmService filmService, IProducerService producerService,
                                         IActorsService actorService, ICategorysService categorysService,
                                         IDirectorService directorService, ITagService tagService,
                                         IResolutionService resolutionService,
                                         IActorMovieService actorMovieService,
                                         IDirectorMovieService directorMovieService,
                                         ICategoryMovieService categoryMovieService,
                                         IProducerMovieService producerMovieService,
                                         IResolutionMovieService resolutionMovieService,
                                         ITagMovieService tagMovieService)
        {
            _movieService           = movieService;
            _filmService            = filmService;
            _producerService        = producerService;
            _actorService           = actorService;
            _categorysService       = categorysService;
            _directorService        = directorService;
            _tagService             = tagService;
            _resolutionService      = resolutionService;
            _actorMovieService      = actorMovieService;
            _directorMovieService   = directorMovieService;
            _categoryMovieService   = categoryMovieService;
            _producerMovieService   = producerMovieService;
            _resolutionMovieService = resolutionMovieService;
            _tagMovieService        = tagMovieService;


            var listMovies = _movieService.GetAllSeriesTV();

            if (!_listSeriesTV.Any())
            {
                foreach (var item in listMovies)
                {
                    var movieViewModel = AutoMapper.Mapper.Map <MoviesViewModel>(item);
                    var listFilm       = _filmService.GetAllFilmInSeriesTV(item.Id);
                    var filmViewModel  = AutoMapper.Mapper.Map <IList <FilmViewModel> >(listFilm);

                    var model = new SeriesTVViewModel()
                    {
                        MoviesViewModel = movieViewModel,
                        FilmViewModels  = filmViewModel
                    };
                    _listSeriesTV.Add(model);
                }
            }
        }
Пример #8
0
 public MoviesController(IMoviesService moviesService,
                         IActorMovieService actorMovieService,
                         IActorsService actorsService,
                         IDirectorService directorService,
                         IDirectorMovieService directorMovieService,
                         IFilmService filmService,
                         IRatingService ratingService,
                         IApplicationUserService applicationUserService,
                         IFavoriteMovieService favoriteMovieService)
 {
     _moviesService          = moviesService;
     _actorMovieService      = actorMovieService;
     _actorsService          = actorsService;
     _directorService        = directorService;
     _directorMovieService   = directorMovieService;
     _filmService            = filmService;
     _ratingService          = ratingService;
     _applicationUserService = applicationUserService;
     _favoriteMovieService   = favoriteMovieService;
 }
Пример #9
0
 public ActorMovieController(IActorMovieService ActorMovieService)
 {
     this.ActorMovieService = ActorMovieService;
 }
Пример #10
0
 public DetailModel(IActorMovieService actorMovieService)
 {
     _actorMovieService = actorMovieService;
 }
Пример #11
0
 public IndexModel(IActorMovieService actorMovieService)
 {
     _actorMovieService = actorMovieService;
 }
Пример #12
0
 public CreateModel(IActorMovieService actorMovieService)
 {
     _actorMovieService = actorMovieService;
 }
Пример #13
0
 public DeleteModel(IActorMovieService actorMovieService)
 {
     _actorMovieService = actorMovieService;
 }
Пример #14
0
 public EditModel(IActorMovieService _actorMovieService)
 {
     actorMovieService = _actorMovieService;
 }