Esempio n. 1
0
 public bool Cadastrar(Seguro seguro, TipoSeguro tipo, long numeroApolice)
 {
     try
     {
         return(_seguroService.Cadastrar(seguro, tipo, numeroApolice));
     }
     catch (RegistroExisteException e)
     {
         throw new RegistroExisteException(e.Message);
     }
     catch (ConcorrenciaBancoException e)
     {
         throw new ConcorrenciaBancoException(e.Message);
     }
 }