public void UpdatePropertyPatrol(Core.Domain.Properties.PropertyPatrol p) { if (p == null) { throw new ArgumentNullException("property is null"); } _propertyPatrolRepository.Update(p); _eventPublisher.EntityUpdated(p); }
public void DeletePropertyPatrol(Core.Domain.Properties.PropertyPatrol p) { if (p == null) { throw new ArgumentNullException("property is null"); } p.Deleted = true; UpdatePropertyPatrol(p); }