コード例 #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());
        }