Exemplo n.º 1
0
 public void Adicionar(Serie serie)
 {
     try
     {
         serie.Validacao();
         if (!_repositorioSerie.GetByName(serie))
         {
             _repositorioSerie.Add(serie);
         }
         else
         {
             throw new Exception("A série já existe!");
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }