public async Task <ObservableCollection <CatalogType> > GetCatalogTypeAsync() { IEnumerable <CatalogType> types = await catalogApi.GetCatalogTypeAsync(); if (types != null) { return(new ObservableCollection <CatalogType>(types)); } else { return(new ObservableCollection <CatalogType>()); } }