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)); }
public Territory Get(Expression <Func <Territory, bool> > filter) { return(_territoryDal.Get(filter)); }