public void AddIpRange() { var ipRange = new IPRange() { Id = _nextIrId }; IPRanges.Add(ipRange); _nextIrId++; }
// Delete the IPRange and its subnets public void DeleteIpRange(IPRange ipRange) { if (ipRange == null) { return; } Subnets.RemoveAll(s => s.IPRangeId == ipRange.Id); IPRanges.Remove(ipRange); NotifySubnetChange(); }