public void Delete(Guid id) { IPSEntry entry = _ipsRepository.Get(id); _ipsRepository.Delete(entry); _unitOfWork.Commit(); }
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(); }