Example #1
0
        public User Register(string loginId, string password, string userName, string email)
        {
            if (!_uniqueService.Validate(loginId, _commandId))
            {
                throw new ApplicationException("用户名已存在");
            }

            return(new User(loginId, password, userName, email));
        }