示例#1
0
        public IDataResult <List <OrderDto> > GetOrderDetailsAsync()
        {
            var _getOrderDetailsAsync = _orderDal.GetOrderDetailsAsync().Result;

            if (_getOrderDetailsAsync == null)
            {
                return(new ErrorDataResult <List <OrderDto> >(OrderMessages.RecordNotFound));
            }
            return(new SuccessDataResult <List <OrderDto> >(_getOrderDetailsAsync, OrderMessages.OrderDetailsListed));
        }