Exemplo n.º 1
0
 public bool DeleteWarehouseTree()
 {
     try
     {
         _warehouseRepository.DeleteAll();
         _truckRepository.DeleteAll();
         _hopRepository.DeleteAll(); // TODO maybe hops don't have to be deleted for archiving reasons?
         _parcelRepository.DeleteAll();
         _logger.Info("Deleted all warehouses, trucks and hops.");
         return(true);
     }
     catch (Exception ex)
     {
         throw new BLException("Error deleting warehouses & trucks & hops: " + ex.Message + ", Inner: " + ex.InnerException, ex);
     }
 }