示例#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);
        }