public HallsController(IAddHallCommand addHall, IGetHallsCommand getHalls, IGetHallCommand getHall, IEditHallCommand editHall, IDeleteHallCommand deleteHall) { this.addHall = addHall; this.getHalls = getHalls; this.getHall = getHall; this.editHall = editHall; this.deleteHall = deleteHall; }
public HallsController(IGetHallsCommand getHalls, IGetHallCommand getHall, IAddHallCommand addHall, IEditHallCommand editHall, IDeleteHallCommand deleteHall, UseCaseExecutor executor) { this.getHalls = getHalls; this.getHall = getHall; this.addHall = addHall; this.editHall = editHall; this.deleteHall = deleteHall; this.executor = executor; }
public IActionResult Delete(int id, [FromServices] IDeleteHallCommand command) { _executor.ExecuteCommand(command, id); return(NoContent()); }