public void Salvar(CategoriaConteudoUF model) { //Caso seja unico, descomentar a linha baixo e implementar //a verificacao por nome do programa. if (model.ID == 0) { if (this.ObterPorId(model.ID) != null) { throw new AcademicoException("Já existe um registro."); } } repositorio.Salvar(model); }
private void ValidarModuloInformada(CategoriaConteudoUF model) { //throw new NotImplementedException(); }
public void Excluir(CategoriaConteudoUF model) { repositorio.Excluir(model); }