Ejemplo n.º 1
0
        private async Task GetBrandsAsync()
        {
            IsBusy = true;
            var result = await BrandsService.GetAllBrandsAsync();

            Brands = result.Values.ToList();
            IsBusy = false;
        }
Ejemplo n.º 2
0
        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);
        }