예제 #1
0
 public async Task <List <NamedAPIResource> > GetAll(int limit, int offset)
 => await _memoryCache.GetOrCreateAsync(
     $"{_typeName}-GetAll-{limit}-{offset}",
     entry => _pokemonsService.GetAll(limit, offset));
예제 #2
0
 public async Task <List <DTO.PokemonList> > GetAll([FromServices] IPokemonsService service)
 {
     return(await service.GetAll());
 }