public ActionResult <List <Serie> > GetSeries(string characterId) { try { var serie = repository.GetSeries(characterId); if (serie == null) { return(NotFound()); } if (serie.Count == 0) { throw new Exception("Não foi possivel encontrar nenhuma serie com esse characterId"); } return(serie); } catch (Exception ex) { throw; } }