예제 #1
0
 public LogsController(IDeleteLogCommand deleteLogCommand, IGetLogCommand getLogCommand, IGetLogsCommand getLogsCommand, IInsertLogCommand insertLogCommand, IUpdateLogCommand updateLogCommand)
 {
     this.deleteLogCommand = deleteLogCommand;
     this.getLogCommand    = getLogCommand;
     this.getLogsCommand   = getLogsCommand;
     this.insertLogCommand = insertLogCommand;
     this.updateLogCommand = updateLogCommand;
 }
예제 #2
0
 public LogsController(IGetLogsCommand getLogsCommand, IMapper mapper)
 {
     _getLogsCommand = getLogsCommand ?? throw new ArgumentNullException(nameof(getLogsCommand));
     _mapper         = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
예제 #3
0
 public LogsController(IGetLogsCommand getLogs, UseCaseExecutor executor, IGetLogCommand getLog)
 {
     this.getLogs  = getLogs;
     this.executor = executor;
     this.getLog   = getLog;
 }
예제 #4
0
 public IActionResult Get([FromQuery] LogSearch search, [FromServices] IGetLogsCommand query)
 {
     return(Ok(executor.ExecuteQuery(query, search)));
 }