Kooboo.Commerce.Customers.CustomerService.Update C# (CSharp) Method

Update() public method

public Update ( Customer customer ) : void
customer Customer
return void
        public void Update(Customer customer)
        {
            if (!CanUseEmail(customer, customer.Email))
                throw new BusinessRuleViolationException("Email was already taken by others.");

            _customerRepository.Update(customer);
            Event.Raise(new CustomerUpdated(customer), _instance);
        }