Ejemplo n.º 1
0
        //private string SetInternal()
        //{
        //    StringBuilder objstrb = new StringBuilder();
        //    //objstrb.Append("<P>"<P>);
        //    //        "Welcome to Your Tribute!
        //    //Now that you have registered you can begin collaborating with friends and family:
        //    //• leave messages in their guestbooks
        //    //• share photos and videos
        //    //• send virtual gifts
        //    //• receive event invites and updates
        //    //You can also:
        //    //• create your own tribute to celebrate a significant event or a special someone
        //    //• send private messages—simply click on another member’s name to open the profile and communicate one-to-one
        //    //• upload a profile picture of yourself—you can upload a picture, an icon, or a drawing, and it will show up wherever you add content on Your Tribute. To add a profile picture, click the ""My Profile"" link in the top navigation bar and then click the ""Edit My Profile"" button
        //    //Take a Tour to learn more about Your Tribute, or find Help at the bottom of any page.
        //    //----
        //    //Your Tribute Team
        //    //"
        //}
        public object SavePersonalAccount(UserRegistration _UserRegistration)
        {
            UserInfoResource objUserinfo = new UserInfoResource();
            object[] param = { _UserRegistration };

            using (TransactionScope trans = new TransactionScope())
            {
                objUserinfo.SaveUserAccount(param).ToString();
                //Transaction Completed
                if (_UserRegistration.CustomError == null)
                {
                    trans.Complete();
                }
            }

            if (_UserRegistration.CustomError == null &&
                !_UserRegistration.Users.Email.Equals(string.Empty) &&
                !_UserRegistration.Users.Password.Equals(string.Empty))
            {
                SendMail(_UserRegistration, _UserRegistration.Users.UserId, objUserinfo);
            }
            return _UserRegistration.Users.UserId;
        }