public async Task <ActionResult <IEnumerable <SuperheroListDTO> > > Get() { return(await _repository.Read().ToListAsync()); }
// GET: SuperheroesController public async Task <ActionResult> Index() { var superheroes = await _repository.Read().ToListAsync(); return(View(superheroes)); }