public void DeleteVendorType(VendorType vendorType)
        {
            if (vendorType == null)
                throw new ArgumentNullException();

            _vendorTypeRepository.Delete(vendorType);

            _eventPublisher.EntityDeleted(vendorType);
        }
        public void InsertVendorType(VendorType vendorType)
        {
            if (vendorType == null)
                throw new ArgumentNullException();

            _vendorTypeRepository.Insert(vendorType);

            _eventPublisher.EntityInserted(vendorType);
        }