Exemplo n.º 1
0
        public async Task InsertorUpdateDataDomains(IEnumerable <DTO.CNDSMetadata.DomainUseReturnDTO> domainUses)
        {
            Guid networkID = await CNDSEntityUpdater.GetNetworkID(DataContext);

            using (var cnds = new CNDSEntityUpdater(networkID))
            {
                try
                {
                    await CNDSEntityUpdater.RegisterOrUpdateDomainsUses(domainUses);
                }
                catch (Exception ex)
                {
                    Logger.Error(ex.Message, ex.InnerException);
                    throw;
                }
            }
        }