コード例 #1
0
 public bool ExcluirPostagem(Comentario comment)
 {
     try
     {
         _comentario.Excluir(c => c == comment);
         _comentario.Commit();
         return true;
     }
     catch
     {
         return false;
     }
 }
コード例 #2
0
 public bool EditarPostagem(Comentario comment)
 {
     try
     {
         _comentario.Atualizar(comment);
         _comentario.Commit();
         return true;
     }
     catch
     {
         return false;
     }
 }
コード例 #3
0
 public bool AdicionarPostagem(Comentario comment)
 {
     try
     {
         _comentario.Adicionar(comment);
         _comentario.Commit();
         return true;
     }
     catch (Exception)
     {
         return false;
     }
 }