Esempio n. 1
0
        private void registerButton_Click(object sender, EventArgs e)
        {
            _user.FirstName = firstNameMaskedTextBox.Text;
            _user.LastName  = lastNameMaskedTextBox.Text;
            _user.UserName  = userNameMaskedTextBox.Text;
            if (passwordMaskedTextBox.Text != String.Empty)
            {
                _user.Password = _userRegistrationService.GetHash(passwordMaskedTextBox.Text);
            }
            _user.EmailAddress = emailAddressMaskedTextBox.Text;
            _user.MobileNumber = mobileNumberMaskedTextBox.Text;

            if (Validation.IsValidModel(_user, true))
            {
                _adminService.Update(_user.UserId, _user);
                this.Hide();
            }
        }