コード例 #1
0
 public ActorsController(IGetActorsCommand getActors, ICreateActorCommand createActor, IDeleteActorCommand deleteActor, IGetOneActorCommand getOneActor)
 {
     this.getActors   = getActors;
     this.createActor = createActor;
     this.deleteActor = deleteActor;
     this.getOneActor = getOneActor;
 }
コード例 #2
0
 public ActorsController(IAddActorCommand addActorCommand, IGetActorsCommand getActorsCommand, IGetActorCommand getActorCommand, IEditActorCommand editActorCommand, IDeleteActorCommand deleteActorCommand)
 {
     this.addActorCommand    = addActorCommand;
     this.getActorsCommand   = getActorsCommand;
     this.getActorCommand    = getActorCommand;
     this.editActorCommand   = editActorCommand;
     this.deleteActorCommand = deleteActorCommand;
 }
コード例 #3
0
 public ActorsController(IAddActorCommand addActors, IGetActorsCommand getActors, IGetActorCommand getActor, IEditActorCommand editActor, IDeleteActorCommand deleteActor)
 {
     this.addActors   = addActors;
     this.getActors   = getActors;
     this.getActor    = getActor;
     this.editActor   = editActor;
     this.deleteActor = deleteActor;
 }
コード例 #4
0
 //[Authorize]
 public IActionResult Delete(int id, [FromServices] IDeleteActorCommand command)
 {
     executor.ExecuteCommand(command, id);
     return(StatusCode(StatusCodes.Status204NoContent));
 }