public IActionResult SetDateTime([FromBody] SetDateTimeCommand command) { return(_commandHandler.ExecuteCommand(command, UserId)); }
public async Task SetDateTime(DateTime dateTime) { var cmd = new SetDateTimeCommand(DeviceId, dateTime); await DeviceStream.SendCommand(cmd); }