Kooboo.Commerce.Customers.CustomerService.Create C# (CSharp) 메소드

Create() 공개 메소드

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

            _customerRepository.Insert(customer);
            Event.Raise(new CustomerCreated(customer), _instance);
        }