public ServerParkDto MapToServerParkDto(IServerPark serverPark)
 {
     return(new ServerParkDto
     {
         Name = serverPark.Name,
         Instruments = _mapper.MapToInstrumentDtos(serverPark.Surveys),
         Servers = MapToServerDtos(serverPark.Servers)
     });
 }
        private static Guid GetInstrumentId(string instrumentName, IServerPark serverPark)
        {
            var survey = serverPark.Surveys.FirstOrDefault(s => string.Equals(s.Name, instrumentName, StringComparison.OrdinalIgnoreCase));

            if (survey == null)
            {
                throw new DataNotFoundException($"Instrument '{instrumentName}' not found on server park '{serverPark.Name}'");
            }

            return survey.InstrumentID;
        }