using PokedexApi.Models; namespace PokedexApi.Storage; public class PokemonStorage { private List _pokemons = new List { new Pokemon(1, "Pikachu", "Electric", 12), new Pokemon(2, "Charmander", "Fire", 8), new Pokemon(3, "Squirtle", "Water", 10) }; public List GetAll() { return new List(_pokemons); } public Pokemon? GetById(int id) { return _pokemons.FirstOrDefault(p => p.Id == id); } public List Filter(string? type, int? level) { return _pokemons.Where(p => p.Type == type || p.Level == level).ToList(); } public List SearchByName(string query) { return _pokemons.Where(p => p.Name.Contains(query)).ToList(); } public Pokemon Add(PokedexInput) }