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; }
public LogsController(IGetLogsCommand getLogsCommand, IMapper mapper) { _getLogsCommand = getLogsCommand ?? throw new ArgumentNullException(nameof(getLogsCommand)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public LogsController(IGetLogsCommand getLogs, UseCaseExecutor executor, IGetLogCommand getLog) { this.getLogs = getLogs; this.executor = executor; this.getLog = getLog; }
public IActionResult Get([FromQuery] LogSearch search, [FromServices] IGetLogsCommand query) { return(Ok(executor.ExecuteQuery(query, search))); }