public bool DeleteApartment(ApartmentDao apt)
 {
     try
     {
         if (aptVal.Validate(apt))
         {
             ac.DeleteApartment(emap.MapToData(apt));
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch (Exception)
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 public void Test_DeleteApartments()
 {
     Assert.True(ah.DeleteApartment(apt));
 }