diff --git a/Extensions/xIdentityModelsExtensions.cs b/Extensions/xIdentityModelsExtensions.cs
index 2f1282f..654c29e 100644
--- a/Extensions/xIdentityModelsExtensions.cs
+++ b/Extensions/xIdentityModelsExtensions.cs
@@ -147,5 +147,29 @@ namespace xIdentityModels.Extensions
//
return result;
}
+
+ ///
+ /// Check Specified User Contains Specified UserSelectByParam or not ...
+ ///
+ ///
+ ///
+ ///
+ public static bool ContainsUserSelectByParam(
+ this XUser source,
+ string userSelectByParam
+ )
+ {
+ //
+ var result =
+ !source.IsNull() &&
+ !userSelectByParam.IsNullOrEmpty() &&
+ (source.Id == userSelectByParam ||
+ source.Email.ToNormalString() == userSelectByParam.ToNormalString() ||
+ source.UserName.ToNormalString() == userSelectByParam.ToNormalString() ||
+ source.PhoneNumber.ToNormalString() == userSelectByParam.ToNormalString());
+
+ //
+ return result;
+ }
}
}
\ No newline at end of file