public async Task <IActionResult> OnGetAsync() { userId = HttpContext.Session.GetString("userId"); Orders = await _orderApi.GetOrdersByUsername(userId); return(Page()); }
public async Task <IActionResult> OnGetAsync() { /* username = HttpContext.Session.GetString("username");*/ Orders = await _orderApi.GetOrdersByUsername("test") ?? new List <Order>(); return(Page()); }
public async Task <IActionResult> OnGetAsync() { var username = "******"; Orders = await _orderApi.GetOrdersByUsername(username); return(Page()); }
public async Task <IActionResult> OnGetAsync() { Orders = await _orderApi.GetOrdersByUsername("test"); return(Page()); }