Esempio n. 1
0
        public async Task <GenericLookupResult> GetTypeById(int id)
        {
            tlkpType type = await _pokedexRepository.GetTypeById(id);

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

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