Beispiel #1
0
        private async Task GetBrandsAsync()
        {
            IsBusy = true;
            var result = await BrandsService.GetAllBrandsAsync();

            Brands = result.Values.ToList();
            IsBusy = false;
        }
        public async Task <List <Brand> > GetBrandsAsync()
        {
            IsBusy = true;
            await Task.Delay(1500);

            var response = await BrandsService.GetAllBrandsAsync();

            IsBusy = false;
            if (response.IsSuccess)
            {
                return(response.Values.ToList());
            }

            return(null);
        }