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); }
public void Create(SipAccount ccmUser) { _internalRepository.Create(ccmUser); }