コード例 #1
0
        public async Task <IActionResult> OnGetAsync()
        {
            var userName = "******";

            Orders = await _orderApi.GetOrdersByUserName(userName);

            return(Page());
        }
コード例 #2
0
        public async Task <IActionResult> OnGetAsync()
        {
            Orders = await _orderApi.GetOrdersByUserName("johndoe");

            return(Page());
        }
コード例 #3
0
        public async Task <IActionResult> OnGetAsync()
        {
            Orders = await orderApi.GetOrdersByUserName("swn").ConfigureAwait(false);

            return(Page());
        }