private async Task NavigateToLogin <T>(Credentials credentials) where T : IMvxViewModel <Profile>
        {
            DatabaseErrorViewModel databaseErrorViewModel = this;

            databaseErrorViewModel.Busy();
            IMvxNavigationService navigationService = databaseErrorViewModel._navigationService;
            Profile profile = new Profile();

            profile.Id = credentials.UserId;
            CancellationToken cancellationToken = new CancellationToken();
            int num = await navigationService.Navigate <T, Profile>((M1)profile, (IMvxBundle)null, cancellationToken) ? 1 : 0;

            databaseErrorViewModel.NotBusy();
        }
        private async Task HandleDatabaseError()
        {
            DatabaseErrorViewModel databaseErrorViewModel = this;

            databaseErrorViewModel.Busy();
            await Task.Delay(100);

            Realm.DeleteRealm((RealmConfigurationBase)RealmUtils.RealmConfiguration);
            int num = await databaseErrorViewModel._navigationService.Navigate <LoginViewModel>((IMvxBundle)null, new CancellationToken()) ? 1 : 0;

            Credentials credentials = ((ICredentialsDataService)Mvx.get_IoCProvider().Resolve <ICredentialsDataService>()).GetAllCredentials().FirstOrDefault <Credentials>();

            if (credentials != null)
            {
                await databaseErrorViewModel.NavigateToLogin <LoginViewModel>(credentials);
            }
            databaseErrorViewModel.NotBusy();
        }