Exemplo n.º 1
0
        public void Excluir(Serie serie)
        {
            try
            {
                if (_materiaDAO.GetByIDSerie(serie.ID))
                {
                    throw new Exception("A serie esta vinculada a uma materia.");
                }

                _repositorioSerie.Excluir(serie);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }