Beispiel #1
0
        public async Task <Country> GetByIsoCodeAsync(string iataCode, CancellationToken cancellationToken)
        {
            var findTask = await _countriesRepository.FindAsync(x => x.IsoCode.StartsWith(iataCode, StringComparison.InvariantCultureIgnoreCase), 0, 1, cancellationToken);

            return(findTask.FirstOrDefault());
        }