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); } }
public RegisterResponse Register(RegisterRequest request) { if (request == null) { throw new ArgumentNullException("Null request"); } var registerMethods = new RegisterMethods(); RegisterResponse response = registerMethods.Register(request); return(response); }