public Task <bool> ExistsAsync(long id, CancellationToken cancellationToken) { var spec = SpecBuilder <WeatherForecast> .Create( ) .WithId(id); return(_weatherForecastRepository.AnyAsync(spec, cancellationToken)); }
public Task <bool> ExistsAsync(long id, CancellationToken cancellationToken) { var spec = SpecBuilder <WeatherForecast> .Create( ) .WithId(id); return(_weatherForecastRepository.AnyAsync(spec, cancellationToken)); }