Пример #1
0
        /// <summary>
        /// Delete the shipping country mapping
        /// </summary>
        /// <param name="shippingMethodCountryMapping">Shipping country mapping</param>
        public virtual void DeleteShippingMethodCountryMapping(ShippingMethodCountryMapping shippingMethodCountryMapping)
        {
            if (shippingMethodCountryMapping == null)
            {
                throw new ArgumentNullException(nameof(shippingMethodCountryMapping));
            }

            _shippingMethodCountryMappingRepository.Delete(shippingMethodCountryMapping);
        }
Пример #2
0
        /// <summary>
        /// Delete the shipping country mapping
        /// </summary>
        /// <param name="shippingMethodCountryMapping">Shipping country mapping</param>
        public virtual void DeleteShippingMethodCountryMapping(ShippingMethodCountryMapping shippingMethodCountryMapping)
        {
            if (shippingMethodCountryMapping == null)
            {
                throw new ArgumentNullException(nameof(shippingMethodCountryMapping));
            }

            _shippingMethodCountryMappingRepository.Delete(shippingMethodCountryMapping);

            //event notification
            _eventPublisher.EntityDeleted(shippingMethodCountryMapping);
        }
Пример #3
0
 /// <summary>
 /// Delete the shipping country mapping
 /// </summary>
 /// <param name="shippingMethodCountryMapping">Shipping country mapping</param>
 public virtual async Task DeleteShippingMethodCountryMappingAsync(ShippingMethodCountryMapping shippingMethodCountryMapping)
 {
     await _shippingMethodCountryMappingRepository.DeleteAsync(shippingMethodCountryMapping);
 }
Пример #4
0
 /// <summary>
 /// Inserts a shipping country mapping
 /// </summary>
 /// <param name="shippingMethodCountryMapping">Shipping country mapping</param>
 public virtual async Task InsertShippingMethodCountryMappingAsync(ShippingMethodCountryMapping shippingMethodCountryMapping)
 {
     await _shippingMethodCountryMappingRepository.InsertAsync(shippingMethodCountryMapping);
 }
 /// <summary>
 /// Delete the shipping country mapping
 /// </summary>
 /// <param name="shippingMethodCountryMapping">Shipping country mapping</param>
 public virtual void DeleteShippingMethodCountryMapping(ShippingMethodCountryMapping shippingMethodCountryMapping)
 {
     _shippingMethodCountryMappingRepository.Delete(shippingMethodCountryMapping);
 }
 /// <summary>
 /// Inserts a shipping country mapping
 /// </summary>
 /// <param name="shippingMethodCountryMapping">Shipping country mapping</param>
 public virtual void InsertShippingMethodCountryMapping(ShippingMethodCountryMapping shippingMethodCountryMapping)
 {
     _shippingMethodCountryMappingRepository.Insert(shippingMethodCountryMapping);
 }