Пример #1
0
        public IDataResult <List <OrderDto> > GetOrderDetails()
        {
            var _getOrderDetails = _orderDal.GetOrderDetails();

            if (_getOrderDetails == null)
            {
                return(new ErrorDataResult <List <OrderDto> >(OrderMessages.RecordNotFound));
            }
            return(new SuccessDataResult <List <OrderDto> >(_getOrderDetails, OrderMessages.OrderDetailsListed));
        }
Пример #2
0
 public OrderDetailsModel GetOrderDetails(int OrderID)
 {
     return(_orderDal.GetOrderDetails(OrderID));
 }
 public IDataResult <List <OrderDetailsDto> > GetOrderDetails()
 {
     return(new SuccessDataResult <List <OrderDetailsDto> >(_orderDal.GetOrderDetails()));
 }