コード例 #1
0
        public virtual int CreateUserData()
        {
            int ID = 0;

            using (SMAuthorization.SMAuthorizationServClient serv = new SMAuthorization.SMAuthorizationServClient())
            {
                ErrorContainer[] err = serv.CreateNewUser(_userdata, out ID);
                if (err == null || err.Length == 0 || (err.Length == 1 && err[0].ErrorCode == ErrorCode.SMA_NOERRORS))
                {
                    //ID = Convert.ToInt32(uid);
                    HttpContext.Current.Session[Constants.UserID] = ID;
                }
            }

            return(ID);
        }