Exemplo n.º 1
0
 public bool SetorPorRegistrado(int setorId, BancoDeDados banco = null)
 {
     try
     {
         return(_da.SetorPorRegistrado(setorId, banco));
     }
     catch (Exception exc)
     {
         Validacao.AddErro(exc);
     }
     return(false);
 }
 public bool SetorPorRegistrado(int setorId)
 {
     try
     {
         if (_da.SetorPorRegistrado(setorId))
         {
             Validacao.Add(Mensagem.Tramitacao.SetorDestinoPorRegistro);
         }
     }
     catch (Exception exc)
     {
         Validacao.AddErro(exc);
     }
     return(!Validacao.EhValido);
 }