Beispiel #1
0
        private async Task Save()
        {
            var orderItems = OrderItems.Select(x => new OrderItem(x.Product.Id, x.Amount)).ToArray();

            await Async(() => _orderDetailService.CreateOrder(SelectedCustomer.Id, orderItems));

            IsVisible = false;
        }