public IDataResult <List <Territory> > GetAll(Expression <Func <Territory, bool> > filter = null) { var _getAll = _territoryDal.GetAll(filter); if (_getAll == null) { return(new ErrorDataResult <List <Territory> >(TerritoryMessages.RecordNotFound)); } return(new SuccessDataResult <List <Territory> >(_getAll, TerritoryMessages.TerritoriesListed)); }
public List <Territory> GetAll(Expression <Func <Territory, bool> > filter = null) { return(_territoryDal.GetAll(filter)); }