diff --git a/SacsStandardBase/Base/Bus/ItemId.cs b/SacsStandardBase/Base/Bus/ItemId.cs
index 6b05a4d..8788380 100644
--- a/SacsStandardBase/Base/Bus/ItemId.cs
+++ b/SacsStandardBase/Base/Bus/ItemId.cs
@@ -48,6 +48,7 @@ namespace Sarand.Net.Standard.Base.Bus
//-------------------------------------------------------------------
// Utilities.
+ /// Verify that the Item Id is non-null and that the Item Type is specified (>0) and the Id is valid (>0).
public static bool IsValid(ItemId itemId)
{
if (itemId == null) return false;
@@ -56,6 +57,11 @@ namespace Sarand.Net.Standard.Base.Bus
if (itemId.idType == ItemIdType.String && StringUtil.IsEmpty(itemId.StringId)) return false;
return true;
}
+ /// Return the Item Id if non-=null, otherwise empty Item Id.
+ public static ItemId InvalidOnNull (ItemId itemId)
+ {
+ return itemId ?? new ItemId();
+ }
//-------------------------------------------------------------------
// Comparison.