public HomeViewModel GetHomeViewModel() { return(new HomeViewModel() { Pokemons = _pokemonRepo.GetAll(), Trainers = _trainerRepo.GetAll() }); }
public IEnumerable <Pokemon> GetAll() { return(_repository.GetAll()); }
public IList <PokemonModel> GetAll() { return(pokemonRepository.GetAll().Select(x => new PokemonModel(x)).ToList()); }
// GET: PokemonController public IActionResult Index() { var model = _repository.GetAll(); return(View(model)); }
public async Task <List <PokemonEntity> > GetPokemonsAsync() { return(await _pokemonRepository.GetAll()); }
public async Task <IViewComponentResult> InvokeAsync() { List <Pokemon> items = await _repository.GetAll(); return(View(items)); }
public async Task <IActionResult> Index() { List <Pokemon> data = await _repository.GetAll(); return(View(data)); }
public IActionResult Get() { return(Ok(_repository.GetAll())); }
public async Task <IActionResult> GetAllPokemons() { return(Ok(await _pokemonRepository.GetAll())); }