Esempio n. 1
0
        public void Delete(Guid id)
        {
            IPSEntry entry = _ipsRepository.Get(id);

            _ipsRepository.Delete(entry);

            _unitOfWork.Commit();
        }
Esempio n. 2
0
        public void Add(IPSAddModel model, Customer customer)
        {
            var entry = new IPSEntry(
                customer,
                model.Name,
                IPAddress.Parse(model.StartIPAddress),
                IPAddress.Parse(model.EndIPAddress));

            _ipsRepository.Add(entry);
            _unitOfWork.Commit();
        }