コード例 #1
0
        public IDataResult <List <Shipper> > GetAll(Expression <Func <Shipper, bool> > filter = null)
        {
            var _getAll = _shipperDal.GetAll(filter);

            if (_getAll == null)
            {
                return(new ErrorDataResult <List <Shipper> >(ShipperMessages.RecordNotFound));
            }
            return(new SuccessDataResult <List <Shipper> >(_getAll, ShipperMessages.ShippersListed));
        }
コード例 #2
0
 public List <Shipper> GetAll(Expression <Func <Shipper, bool> > filter = null)
 {
     return(_shipperDal.GetAll(filter));
 }