Example #1
0
        public async Task <GenericLookupResult> GetCategoryById(int id)
        {
            tlkpCategory category = await _pokedexRepository.GetCategoryById(id);

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

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