public IActionResult GetTeams(int IdChampionship) { var result = championshipService.getTeamsByChampionship(IdChampionship); if (result == null || !result.Any()) { return(NotFound("Teams in championships not found")); } return(Ok(result)); }