public async Task RegisterUser() { if (string.IsNullOrWhiteSpace(EmailAddress) || string.IsNullOrWhiteSpace(UserPassword)) { return; } await _firebaseAuthService.CreateNewUser(EmailAddress, UserPassword); if (_firebaseAuthService.FirebaseAuth != null) { var newUser = new User { EmailAddress = EmailAddress }; await _userRepository.CreateUser(newUser); await _mvxNavigationService.Navigate <FriendListViewModel, User>(newUser); return; } _notificationService.SendNotification("Failed to create account"); }