예제 #1
0
        public async Task <IActionResult> OnGetAsync()
        {
            userId = HttpContext.Session.GetString("userId");
            Orders = await _orderApi.GetOrdersByUsername(userId);

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

            return(Page());
        }
예제 #3
0
        public async Task <IActionResult> OnGetAsync()
        {
            var username = "******";

            Orders = await _orderApi.GetOrdersByUsername(username);

            return(Page());
        }
예제 #4
0
        public async Task <IActionResult> OnGetAsync()
        {
            Orders = await _orderApi.GetOrdersByUsername("test");

            return(Page());
        }