public ProjectionsController(IGetProjectionsCommand getProjections, IGetProjectionCommand getProjection, IAddProjectionCommand addProjection, IEditProjectionCommand editProjection, IDeleteProjectionCommand deleteProjection, IGetMoviesCommand getMovies, IGetHallsCommand getHalls, UseCaseExecutor executor) { this.getProjections = getProjections; this.getProjection = getProjection; this.addProjection = addProjection; this.editProjection = editProjection; this.deleteProjection = deleteProjection; this.getMovies = getMovies; this.getHalls = getHalls; this.executor = executor; }
public IActionResult Delete(int id, [FromServices] IDeleteProjectionCommand command) { _executor.ExecuteCommand(command, id); return(NoContent()); }