コード例 #1
0
        public async Task YearsChangeAsync()
        {
            var      api    = ((App)App.Current).CurrentIntrataApiClient;
            YearBase filter = new YearBase()
            {
                instalacjaid = SelectedInstallation.DataDB.id
            };
            List <YearBase> years = await api.GetCollectionsAsync <YearBase>(filter, ApiServices.ApiInstallationYears(), false, "");

            Years = new ObservableCollection <YearViewModel>(years.Select(e => new YearViewModel(e)));
        }