示例#1
0
        public void SaveProfile(Profile person)
        {
            MemberProfile profile = new MemberProfile();
            profile.Initialize(person.RecoveryEmail, true);

            profile.FirstName = person.FirstName;
            profile.LastName = person.LastName;
            profile.HomePhoneNumber = person.Phone;
            profile.HomeEmailAddress = person.HomeEmail;
            profile.HomeAddress = person.Address;
            profile.HomeCity = person.City;
            profile.HomeState = person.State;
            profile.HomeUnit = person.Unit;
            profile.Save();
        }
示例#2
0
        public void SaveProfile()
        {
            try
            {
                MemberProfile profile = new MemberProfile();
                profile.Initialize(RecoveryEmail, true);

                profile.FirstName = FirstName;
                profile.LastName = LastName;
                profile.HomePhoneNumber = Phone;
                profile.HomeEmailAddress = HomeEmail;
                profile.Save();

                this.Success = true;
            }
            catch
            {
                this.Success = false;
            }
        }