Exemple #1
0
        private async Task <Breed> GetBreedAsync(int?breedId)
        {
            if (!breedId.HasValue)
            {
                return(null);
            }
            var query = new GetBreedByIdQuery(breedId.Value);

            return(await _queryExecutor.ExecuteAsync(query));
        }
        private async Task <Breed> GetBreedAsync(int?breedId)
        {
            if (!breedId.HasValue)
            {
                return(null);
            }
            var query = new GetBreedByIdQuery(breedId.Value);

            return(await _contentRepository.ExecuteQueryAsync(query));
        }