public ActionResult <IEnumerable <Hero> > Get(string name) { var repository = new HeroRepository(); var hero = repository.FindByName(name); return(Ok(hero)); }