private MetadataModel GetMetadata(MareanoDataset mareanoDataset)
        {
            MetadataModel metadata = new MetadataModel();

            metadata.SimpleMetadata = MetadataService.FetchMetadata(mareanoDataset.Uuid);
            return(metadata);
        }
        private void UpdateMareanoDataset(List <MareanoDataset> MareanoDatasetsFromKartkatalogen)
        {
            //Update register
            foreach (var MareanoDataset in MareanoDatasetsFromKartkatalogen)
            {
                _metadata = GetMetadata(MareanoDataset);

                var originalMareanoDataset = GetMareanoDatasetByUuid(MareanoDataset.Uuid);
                if (originalMareanoDataset != null)
                {
                    UpdateMareanoDataset(originalMareanoDataset, MareanoDataset);
                }
                else
                {
                    NewMareanoDatasetFromKartkatalogen(MareanoDataset);
                }
            }
        }