Beispiel #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;
 }
Beispiel #2
0
 public MovieController(ICreateMovieCommand createMovie, IGetMovieCommand getMovie, IGetOneMovieCommand getOneMovie, IDeleteMovieCommand deleteMovie, IUpdateMovieCommand updateMovie)
 {
     _createMovie = createMovie;
     _getMovie    = getMovie;
     _getOneMovie = getOneMovie;
     _deleteMovie = deleteMovie;
     _updateMovie = updateMovie;
 }
 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;
 }
Beispiel #4
0
 public MovieController(IGetMovieCommand getMovies, IGetOneMovieCommand getOneMovies, ICreateMovieCommand createMovie, IUpdateMovieCommand updateMovie, IDeleteMovieCommand deleteMovie, ICreateMovieAndGenreCommand createMovieAndGenreCommand)
 {
     _getMovies    = getMovies;
     _getOneMovies = getOneMovies;
     _createMovie  = createMovie;
     _updateMovie  = updateMovie;
     _deleteMovie  = deleteMovie;
     _createMovieAndGenreCommand = createMovieAndGenreCommand;
 }
Beispiel #5
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;
 }
 public IActionResult Delete(int id, [FromServices] IDeleteMovieCommand command)
 {
     _executor.ExecuteCommand(command, id);
     return(StatusCode(StatusCodes.Status204NoContent));
 }
 public IActionResult Delete(int id, [FromServices] IDeleteMovieCommand command)
 {
     executor.ExecuteCommand(command, id);
     return(NoContent());
 }