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)); }
public OrderDetailsModel GetOrderDetails(int OrderID) { return(_orderDal.GetOrderDetails(OrderID)); }
public IDataResult <List <OrderDetailsDto> > GetOrderDetails() { return(new SuccessDataResult <List <OrderDetailsDto> >(_orderDal.GetOrderDetails())); }