Exemplo n.º 1
0
        public async Task <ActionResult <IEnumerable <OrderSummary> > > GetOrdersAsync()
        {
            var userId = _identityService.GetUserIdentity();
            var orders = await _orderQueries.GetOrdersForUserAsync(userId);

            foreach (var orderSummary in orders)
            {
                orderSummary.CreatedDate = orderSummary.CreatedDate.ConvertToNzTimeZone();
            }

            return(Ok(orders));
        }