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