コード例 #1
0
        //My account / Orders
        public virtual async Task <IActionResult> CustomerOrders()
        {
            if (!await _customerService.IsRegisteredAsync(await _workContext.GetCurrentCustomerAsync()))
            {
                return(Challenge());
            }

            var model = await _orderModelFactory.PrepareCustomerOrderListModelAsync();

            return(View(model));
        }