Пример #1
0
 public void DeletarController(Veiculo obj)
 {
     try
     {
         if (obj.CodVei == 0)
         {
             throw new Exception("Necessário informar código para exclusão de registro.");
         }
         dao.DeletarVeiculoDAO(obj.CodVei);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }