// Load data to collection public ObservableCollection <Task> LoadDataToObservableCollection() { WebAPIAsyncLoad <Task> retrievedCatalog = new WebAPIAsyncLoad <Task>(); Task <ObservableCollection <Task> > table = retrievedCatalog.Load("Tasks"); ObservableCollection <Task> collection = table.Result; return(collection); }
// Load data to collection public ObservableCollection <Station> LoadDataToObservableCollection() { WebAPIAsyncLoad <Station> retrievedCatalogs = new WebAPIAsyncLoad <Station>(); Task <ObservableCollection <Station> > tables = retrievedCatalogs.Load("Stations"); ObservableCollection <Station> collections = tables.Result; return(collections); }