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

            return(View(superheroes));
        }