public async Task <int> CountAllAsync(Expression <Func <Territory, bool> > filter = null) { var cancelToken = new CancellationTokenSource(); return(await _territoryDal.CountAllAsync(cancelToken.Token, filter)); }