예제 #1
0
        private async Task LoadSurveysAsync()
        {
            var allTeams = await localDbService.GetAllTeamsAsync();

            var allSurveys = await localDbService.GetAllSurveysAsync();

            if (allSurveys != null)
            {
                Surveys = new ObservableCollection <SurveyViewModel>(allSurveys.Select(s => SurveyViewModel.GetViewModelFromEntity(s, allTeams)));
            }
            RaisePropertyChanged(nameof(IsEmpty));
        }