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