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

            return(View(superheroes));
        }