예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
 public IActionResult Delete(int id, [FromServices] IDeleteHallCommand command)
 {
     _executor.ExecuteCommand(command, id);
     return(NoContent());
 }