public virtual void UpdateCustomerActionType(CustomerActionType customerActionType)
        {
            if (customerActionType == null)
            {
                throw new ArgumentNullException("customerActionType");
            }

            _customerActionTypeRepository.Update(customerActionType);

            //clear cache
            _cacheManager.Remove(CUSTOMER_ACTION_TYPE);
            //event notification
            _eventPublisher.EntityUpdated(customerActionType);
        }
예제 #2
0
        public virtual async Task UpdateCustomerActionType(CustomerActionType customerActionType)
        {
            if (customerActionType == null)
            {
                throw new ArgumentNullException("customerActionType");
            }

            await _customerActionTypeRepository.UpdateAsync(customerActionType);

            //clear cache
            await _cacheManager.RemoveAsync(CacheKey.CUSTOMER_ACTION_TYPE);

            //event notification
            await _mediator.EntityUpdated(customerActionType);
        }
 public static CustomerActionTypeModel ToModel(this CustomerActionType entity)
 {
     return(entity.MapTo <CustomerActionType, CustomerActionTypeModel>());
 }