Beispiel #1
0
        public async Task <IActionResult> GetOrders(CancellationToken cancellationToken)
        {
            var orders = await repository.FindOrders(cancellationToken)
                         ?? new Order[0];

            return(Ok(new DataContracts.OrderList {
                Items = orders.ToDto(CreateOrderUrl)
            }));
        }