public bool ExcluirPostagem(Comentario comment) { try { _comentario.Excluir(c => c == comment); _comentario.Commit(); return true; } catch { return false; } }
public bool EditarPostagem(Comentario comment) { try { _comentario.Atualizar(comment); _comentario.Commit(); return true; } catch { return false; } }
public bool AdicionarPostagem(Comentario comment) { try { _comentario.Adicionar(comment); _comentario.Commit(); return true; } catch (Exception) { return false; } }