Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public SipAccount GetByUserName(string userName)
 {
     return(_internalRepository.GetByUserName(userName));
 }