Exemplo n.º 1
0
 private void Register(object sender, RoutedEventArgs e)
 {
     user.Email    = Email.Text;
     user.Password = Password.Text;
     if (registerMethods.Register(user, new string[] { Password.Text, PasswordConfirmation.Text }))
     {
         MessageBox.Show("Регистрация прошла успешно");
         RedirectToEmailConfirmationWindow(sender, e, user);
     }
 }
Exemplo n.º 2
0
        public RegisterResponse Register(RegisterRequest request)
        {
            if (request == null)
            {
                throw new ArgumentNullException("Null request");
            }

            var registerMethods       = new RegisterMethods();
            RegisterResponse response = registerMethods.Register(request);

            return(response);
        }