コード例 #1
0
 public PublishersController(MyComicListContext context, IGetPublishers getCommand, IAddPublisher addCommand, IUpdatePublisher updateCommand, IDeletePublisher deleteCommand)
 {
     Context            = context;
     this.getCommand    = getCommand;
     this.addCommand    = addCommand;
     this.updateCommand = updateCommand;
     this.deleteCommand = deleteCommand;
 }
コード例 #2
0
 public IActionResult Get([FromServices] IGetPublishers query, [FromQuery] PublisherSearch search)
 {
     return(Ok(_executor.ExecuteQuery(query, search)));
 }