diff --git a/AssortValidator.Common/Helpers/TraderHelper.cs b/AssortValidator.Common/Helpers/TraderHelper.cs index d3b0bab..11ceab2 100644 --- a/AssortValidator.Common/Helpers/TraderHelper.cs +++ b/AssortValidator.Common/Helpers/TraderHelper.cs @@ -1,4 +1,5 @@ using AssortValidator.Common.Models; +using System; using System.Collections.Generic; namespace AssortValidator.Common.Helpers @@ -40,5 +41,10 @@ namespace AssortValidator.Common.Helpers return returnType; } + + public static string GetTraderIdByName(Trader key) + { + return _traders.GetValueOrDefault(key, string.Empty); + } } }