Beispiel #1
0
        ///// <summary>
        ///// 新增用户
        ///// </summary>
        ///// <param name="userInfo"></param>
        ///// <returns></returns>
        public bool AddUserInfo(string userName, string email, string password, out string msg)
        {
            bool     success = false;
            UserInfo user    = new UserInfo()
            {
                UserName = userName, Email = email, Password = password, UId = _uUID.CreateUUID()
            };

            if (_userInfoRepository.Add(user))
            {
                // TODO 发送邮件激活链接
                success = true;
                msg     = "Success";
            }
            else
            {
                msg = "新增失败";
            }
            return(success);
        }