Example #1
0
        public ActionResult <IEnumerable <Hero> > Get(string name)
        {
            var repository = new HeroRepository();
            var hero       = repository.FindByName(name);

            return(Ok(hero));
        }