Esempio n. 1
0
        public async Task <IActionResult> OnGetAsync()
        {
            var userName = "******";

            Orders = await _orderApi.GetOrdersByUserName(userName);

            return(Page());
        }
        public async Task <IActionResult> OnGetAsync()
        {
            Orders = await _orderApi.GetOrdersByUserName("johndoe");

            return(Page());
        }
Esempio n. 3
0
        public async Task <IActionResult> OnGetAsync()
        {
            Orders = await orderApi.GetOrdersByUserName("swn").ConfigureAwait(false);

            return(Page());
        }