public IDataResult <Territory> GetAsync(Expression <Func <Territory, bool> > filter)
        {
            var _getAsync = _territoryDal.GetAsync(filter).Result;

            if (_getAsync == null)
            {
                return(new ErrorDataResult <Territory>(TerritoryMessages.RecordNotFound));
            }
            return(new SuccessDataResult <Territory>(_getAsync, TerritoryMessages.TerritoryListed));
        }
        public async Task <Territory> GetAsync(Expression <Func <Territory, bool> > filter)
        {
            var cancelToken = new CancellationTokenSource();

            return(await _territoryDal.GetAsync(filter, cancelToken.Token));
        }