コード例 #1
0
        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));
        }
コード例 #2
0
 public List <Territory> GetAll(Expression <Func <Territory, bool> > filter = null)
 {
     return(_territoryDal.GetAll(filter));
 }