public async Task GamePress(string pokemonName) { var pokemon = _repo.GetByName(pokemonName); await SendPokemonMessage(pokemon); }
public IActionResult GetByName(string name) { Pokemon pokemon = _repo.GetByName(name); return(View("GetById", pokemon)); }