Exemplo n.º 1
0
 public bool Alterar(Seguro seguro, TipoSeguro tipo, long numeroApolice)
 {
     try
     {
         return(_seguroService.Alterar(seguro, tipo, numeroApolice));
     }
     catch (NaoEncontradoException e)
     {
         throw new NaoEncontradoException(e.Message);
     }
     catch (ConcorrenciaBancoException e)
     {
         throw new ConcorrenciaBancoException(e.Message);
     }
 }