Пример #1
0
 public OrderResponseBE GetOrderById(int orderProductId)
 {
     try
     {
         OrderResponseBE response = _orderDA.GetOrderById(orderProductId);
         response.OrderDetails = _orderDA.GetOrderDetails(orderProductId);
         return(response);
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #2
0
        public Order GetOrderById(int id)
        {
            Order order = new Order();

            try
            {
                order = orderDataAccess.GetOrderById(id);
            }
            catch (Exception ex)
            {
                //
            }

            return(order);
        }