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 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; }
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; }
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()); }