public async Task SearchRisAsync() { UpdateInProgress = true; DocumentReferences = null; UpdateSearchResultInfo(); var localQueryParam = QueryParameter; var result = await RisQueryWithIncrementalLoading.LoadPage(localQueryParam, 1); UpdateInProgress = false; if (result.Succeeded) { DocumentReferences = new RisQueryWithIncrementalLoading(localQueryParam, result, IncrementalLoadingStarted, IncrementalLoadingCompleted, IncrementalLoadingFailed); UpdateSearchResultInfo(); var ctx = new RisDbContext(); ctx.InsertSearchHistoryEntry(new DbRisQueryParameter(localQueryParam, DocumentReferences.Hits)); } else { UpdateSearchResultInfo("Abfrage fehlgeschlagen"); } }