示例#1
0
        public async Task SecurityGroupDelete([FromUri] IEnumerable <Guid> ids)
        {
            Guid networkID = await CNDSEntityUpdater.GetNetworkID(DataContext);

            try
            {
                using (var cnds = new CNDSEntityUpdater(networkID))
                {
                    foreach (var id in ids)
                    {
                        await CNDSEntityUpdater.DeleteSecurityGroup(id);
                    }
                }
            }
            catch (Exception ex)
            {
                Logger.Error(ex.Message, ex);
                throw;
            }
        }