private async Task LoadAllTracesAsync() { var tracesResult = await TracesCollectorService.GetAllTracesForReservationAsync(_currentReservationId); if (tracesResult.Success) { var traces = tracesResult.Result.ValueOr(new List <TraceItemModel>()); AllTracesDictionary.AddTracesRange(traces); } else { var errorMessage = tracesResult.ErrorMessage.ValueOrException(new NotImplementedException()); await ApaleoOneNotificationService.ShowErrorAsync(errorMessage); } }
protected override async Task <ResultModel <IReadOnlyList <TraceItemModel> > > GetActiveTracesAsync(DateTime from, DateTime toDateTime) => await TracesCollectorService.GetActiveTracesForPropertyAsync(_currentPropertyId, from, toDateTime);
protected override async Task <ResultModel <IReadOnlyList <TraceItemModel> > > GetOverdueTracesAsync() => await TracesCollectorService.GetOverdueTracesForPropertyAsync(_currentPropertyId);