Exemple #1
0
        public async Task <IActionResult> OnGetAsync()
        {
            username = HttpContext.Session.GetString("username");
            Cart     = await _api.GetCart(username);

            return(Page());
        }
Exemple #2
0
        public async Task <IActionResult> OnGetAsync()
        {
            User = await _usersApi.GetUserById(Guid.Parse(HttpContext.Session.GetString("id")));

            Cart = await _basketApi.GetCart(User.Username);

            return(Page());
        }
Exemple #3
0
        public async Task <IActionResult> OnGetAsync()
        {
            Cart = await _basketApi.GetCart("test");

            return(Page());
        }