Beispiel #1
0
        public async Task <ObservableCollection <CatalogBrand> > GetCatalogBrandAsync()
        {
            IEnumerable <CatalogBrand> brands = await catalogApi.GetCatalogBrandAsync();

            if (brands != null)
            {
                return(new ObservableCollection <CatalogBrand>(brands));
            }
            else
            {
                return(new ObservableCollection <CatalogBrand>());
            }
        }