Exemplo n.º 1
0
        public async System.Threading.Tasks.Task <IEnumerable <MetadataDTO> > InsertOrUpdateDomains(IEnumerable <MetadataDTO> metaData)
        {
            List <MetadataDTO> meta = new List <MetadataDTO>();
            Guid networkID          = await CNDSEntityUpdater.GetNetworkID(DataContext);

            try
            {
                using (var cnds = new CNDSEntityUpdater(networkID))
                {
                    await CNDSEntityUpdater.RegisterOrUpdateDomains(metaData);
                }
            }
            catch (Exception ex)
            {
                Logger.Error(ex.Message, ex);
                throw;
            }
            return(meta);
        }