Exemple #1
0
 public MoviesController(Context baza, IGetMoviesCommand getMovies, ICreateMovieCommand createMovie, IDeleteMovieCommand deleteMovie, IEditMovieCommand editMovie)
 {
     this.getMovies   = getMovies;
     this.createMovie = createMovie;
     this.deleteMovie = deleteMovie;
     this.editMovie   = editMovie;
     this.baza        = baza;
 }
 public MoviesController(IGetMoviesCommand getMovies, IGetMovieCommand getMovie, IAddMovieCommand addMovie, IEditMovieCommand editMovie, IDeleteMovieCommand deleteMovie)
 {
     this.getMovies   = getMovies;
     this.getMovie    = getMovie;
     this.addMovie    = addMovie;
     this.editMovie   = editMovie;
     this.deleteMovie = deleteMovie;
 }
Exemple #3
0
 public MoviesController(IGetMoviesCommand getMovies, IGetActorsCommand getActors, IGetGenresCommand getGenres, ICreateMovieCommand createMovie, IDeleteMovieCommand deleteMovie, IEditMovieCommand editMovie, IGetOneMovieCommand getOneMovie)
 {
     this.getMovies   = getMovies;
     this.getActors   = getActors;
     this.getGenres   = getGenres;
     this.createMovie = createMovie;
     this.deleteMovie = deleteMovie;
     this.editMovie   = editMovie;
     this.getOneMovie = getOneMovie;
 }
 public MoviesController(IGetMoviesCommand getMovies, IGetMovieCommand getMovie, IAddMovieCommand addMovie, IEditMovieCommand editMovie, IDeleteMovieCommand deleteMovie, IGetGenresCommand getGenres, IGetActorsCommand getActors, IGetLanguagesCommand getLanguages, IGetWritersCommand getWriters, IGetProductionsCommand getProductions, IGetCountriesCommand getCountries, IGetRatedsCommand getRateds, UseCaseExecutor executor, IActivateMovieCommand activateMovie)
 {
     this.getMovies      = getMovies;
     this.getMovie       = getMovie;
     this.addMovie       = addMovie;
     this.editMovie      = editMovie;
     this.deleteMovie    = deleteMovie;
     this.getGenres      = getGenres;
     this.getActors      = getActors;
     this.getLanguages   = getLanguages;
     this.getWriters     = getWriters;
     this.getProductions = getProductions;
     this.getCountries   = getCountries;
     this.getRateds      = getRateds;
     this.executor       = executor;
     this.activateMovie  = activateMovie;
 }
Exemple #5
0
 public IActionResult Put(int id, [FromBody] MovieDto dto, [FromServices] IEditMovieCommand command)
 {
     dto.Id = id;
     _executor.ExecuteCommand(command, dto);
     return(NoContent());
 }