Exemple #1
0
 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 Put(int id, [FromBody] ProjectionDto dto, [FromServices] IEditProjectionCommand command)
 {
     dto.Id = id;
     _executor.ExecuteCommand(command, dto);
     return(NoContent());
 }