Example #1
0
 public static void Alta(Vivienda unaV)
 {
     if (unaV is Apartamento)
     {
         PersistenciaApartamento.Alta((Apartamento)unaV);
     }
     else if (unaV is Casa)
     {
         throw new Exception("No se eimplemento Alta Casa");
     }
     else if (unaV == null)
     {
         throw new Exception("No se indicio Vivienda para Alta");
     }
 }