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