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)); }
public List <Shipper> GetAll(Expression <Func <Shipper, bool> > filter = null) { return(_shipperDal.GetAll(filter)); }