public async Task InitializeAsync() { if (((App)App.Current).CurrentIntrataApiClient == null && ((App)App.Current).SettingApp.IntrataApiServer != null) { ((App)App.Current).CurrentIntrataApiClient = new IntrataApiClient(((App)App.Current).SettingApp.IntrataApiServer); } var api = ((App)App.Current).CurrentIntrataApiClient; List <InstallationBase> linstalls = await api.GetCollectionsAsync <InstallationBase>(null, ApiServices.ApiInstallation(), false, "", RestSharp.Portable.Method.GET); Installations = new ObservableCollection <InstallationViewModel>(linstalls.Select(e => new InstallationViewModel(e))); }