Example #1
0
        public async Task <ActionResult <OrderLocationDTO> > GetLocation([FromRoute] Guid userId, [FromRoute] string orderNumber)
        {
            DeliveryLocationDTO location = await _deliveryServiceClient.DeliveryAsync(orderNumber);

            if (location == null)
            {
                return(NotFound());
            }
            return(Ok(_mapper.Map <OrderLocationDTO>(location)));
        }