public async Task <IActionResult> OnGetAsync() { username = HttpContext.Session.GetString("username"); Cart = await _api.GetCart(username); return(Page()); }
public async Task <IActionResult> OnGetAsync() { User = await _usersApi.GetUserById(Guid.Parse(HttpContext.Session.GetString("id"))); Cart = await _basketApi.GetCart(User.Username); return(Page()); }
public async Task <IActionResult> OnGetAsync() { Cart = await _basketApi.GetCart("test"); return(Page()); }