public Task <CommandCorrelationId> Irrigate(IrrigateCommand command) { return(_apiClient.Post <IrrigateCommand, CommandCorrelationId>("Devices/greenhouse-controller/commands/irrigate", command)); }
public async Task <IActionResult> SendGreenhouseControllerIrrigateCommand([FromBody] IrrigateCommand command) { return(Ok(await _commandBus.SendAsync(command))); }