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