public void Excluir(int id) { try { ResumoAcessoADados resumoAcesso = new ResumoAcessoADados(); resumoAcesso.Excluir(id); } catch (Exception) { throw; } }
public int Alterar(Resumo resumo) { try { if (resumo.Assunto.Trim().Length <= 0) { throw new Exception("O assunto precisa ser informado!"); } if (resumo.Texto.Trim().Length <= 0) { throw new Exception("O resumo precisa ser preenchido!"); } ResumoAcessoADados resumoAcessoADados = new ResumoAcessoADados(); return(resumoAcessoADados.Alterar(resumo)); } catch (Exception) { throw; } }