using Microsoft.EntityFrameworkCore; using Portfolio.Domain.Features.Pokemon; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Portfolio.Infrastructure.Repositories { public class PokemonRepository : IPokemonRepository { private readonly ApplicationDbContext _context; public PokemonRepository(ApplicationDbContext context) { _context = context; } public async Task> GetAllPokemonsAsync() { return await _context.Pokemons.ToListAsync(); } } }