Exemplo n.º 1
0
        public async Task <ActionResult <Hero> > Get(int id)
        {
            var hero = await _context.FindAsync <Hero>(id);

            if (hero == null)
            {
                return(NotFound());
            }

            return(hero);
        }