예제 #1
0
        public async Task <ActionResult <OrderResponseDTO> > OrderGetById(int orderId)
        {
            var order = await _orderRespository.GetById(orderId);

            if (order is null)
            {
                return(NotFound());
            }

            return(_mapper.Map <OrderResponseDTO>(order));
        }