Beispiel #1
0
        public List <OrderDetails> GetOrderDetails(int orderId)
        {
            List <OrderDetails> OrderDetailsEntities = new List <OrderDetails>();

            try
            {
                OrderDetailsEntities = _repository.GetOrderDetails(orderId).ToList();
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(OrderDetailsEntities);
        }
Beispiel #2
0
        public OrderDetails GetOrderDetails(int orderId, string EmailID)
        {
            OrderDetails orderDetails = new OrderDetails();

            try
            {
                orderDetails = _repository.GetOrderDetails(orderId, EmailID);
            }
            catch (Exception ex)
            {
                throw;
            }
            return(orderDetails);
        }