public void DeleteOrder2HardwareByOrderID(Sender sender, Guid OrderID) { try { using (ObjectProxy op = new ObjectProxy(true)) { op.DeleteOrder2HardwaresByOrderID(OrderID); op.CommitTransaction(); } } catch (Exception ex) { PLogger.LogError(ex); throw ex; } }