Exemplo n.º 1
0
        protected override async Task OnInitializedAsync()
        {
            Products = new List <ProductViewModel>();
            var result = await BasketServices.GetAsync();

            Products = result.ToList();
        }
Exemplo n.º 2
0
        protected override async Task OnInitializedAsync()
        {
            BasketItems = new List <BasketItem>();
            _Product    = new ProductViewModel();

            var result = await BasketServices.GetAsync();

            _Product = result.Where(p => p.Id == ProductId).FirstOrDefault();
        }
Exemplo n.º 3
0
        protected override async Task OnInitializedAsync()
        {
            BasketItems = new List <BasketItem>();

            ////*****************************************************************************
            IList <MenuViewModel> menu = new List <MenuViewModel>();

            Products = (await BasketServices.GetAsync()).ToList();

            //*****************************************************************************
        }
Exemplo n.º 4
0
        protected override async Task OnInitializedAsync()
        {
            var res = await BasketServices.GetAsync();

            Products = res.ToList();
        }