public Task <bool> ExistsAsync(SpecificationBase <T> spec, CancellationToken cancellationToken = default) { return(ApplySpecification(spec.UseStatelessQuery()) .AnyAsync(cancellationToken)); }
public bool Exists(SpecificationBase <T> spec) { return(ApplySpecification(spec.UseStatelessQuery()) .Any()); }