示例#1
0
        public Task <bool> Exists(string id, CancellationToken cancellationToken)
        {
            var spec = SpecificationBuilder <Countries> .Create()
                       .WithId(id);

            return(_countryRepository.AnyAsync(spec, cancellationToken));
        }