Ejemplo n.º 1
0
        public async Task <GenericLookupResult> GetPokeballById(int id)
        {
            tlkpPokeball pokeball = await _pokedexRepository.GetPokeballById(id);

            _logger.LogInformation(Constants.Mapping + " " + Constants.Pokeball + " " + Results + ".");

            return(pokeball == null ? null : new GenericLookupResult()
            {
                Id = pokeball.Id,
                Name = pokeball.Name
            });
        }