public async Task UpdateDiscovererAsync(string discovererId,
                                         [FromBody][Required] DiscovererUpdateApiModel request)
 {
     if (request == null)
     {
         throw new ArgumentNullException(nameof(request));
     }
     await _discoverers.UpdateDiscovererAsync(discovererId,
                                              request.ToServiceModel());
 }
 public async Task SetDiscoveryModeAsync(string discovererId,
                                         [FromQuery][Required] IIoT.OpcUa.Api.Registry.Models.DiscoveryMode mode,
                                         [FromBody] DiscoveryConfigApiModel config)
 {
     var request = new DiscovererUpdateApiModel {
         Discovery       = mode,
         DiscoveryConfig = config
     };
     await _discoverers.UpdateDiscovererAsync(discovererId,
                                              request.ToServiceModel());
 }