public IHttpActionResult GetSuperhero(int id) { SuperheroDto result = superheroRepository.GetById(id); if (result == null) { return(NotFound()); } return(Ok(result)); }