Пример #1
0
        private async Task fetchSectionedTimeEntries()
        {
            var groupedEntries = await interactorFactory.GetAllTimeEntriesVisibleToTheUser().Execute()
                                 .Select(entries => entries
                                         .Where(isNotRunning)
                                         .Where(timeEntry => timeEntry.Id != timeEntryToDelete?.Id)
                                         .Select(te => new TimeEntryViewModel(te, durationFormat))
                                         );

            TimeEntries.ReplaceWith(groupedEntries);
        }