Exemplo 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());
        }
Exemplo n.º 3
0
        public async Task <IActionResult> OnGetAsync()
        {
            Orders = await orderApi.GetOrdersByUserName("swn").ConfigureAwait(false);

            return(Page());
        }