コード例 #1
0
        public IDataResult <Territory> Get(Expression <Func <Territory, bool> > filter)
        {
            var _get = _territoryDal.Get(filter);

            if (_get == null)
            {
                return(new ErrorDataResult <Territory>(TerritoryMessages.RecordNotFound));
            }
            return(new SuccessDataResult <Territory>(_get, TerritoryMessages.TerritoryListed));
        }
コード例 #2
0
 public Territory Get(Expression <Func <Territory, bool> > filter)
 {
     return(_territoryDal.Get(filter));
 }