public IHttpActionResult DeletePower(int id) { var power = powerService.DeleteHero(id); if (power == null) { return(NotFound()); } return(Ok(power)); }