예제 #1
0
        public void Create(SipAccount account)
        {
            if (_sipAccountRepository.GetByUserName(account.UserName) != null)
            {
                log.Warn("Can't create user. Username {0} already exists in CCM database", account.UserName);
                throw new ApplicationException("User name already exists.");
            }

            _sipAccountRepository.Create(account);
        }
예제 #2
0
 public void Create(SipAccount ccmUser)
 {
     _internalRepository.Create(ccmUser);
 }